Time for action – adding a remote origin using GUI mode

Linking or adding a remote origin to our Workbench repository present in our desktop and syncing the contents using the Git GUI is performed as follows:

  1. Open up your Git GUI window for our Workbench repository from the desktop.
  2. Click on the Add option from the Remote menu in your GUI window.
    Time for action – adding a remote origin using GUI mode
  3. This opens up the Add New Remote window where we enter the following details:

    Field name

    Value

    Name

    origin

    Location

    https://your_bitbucket_repo_identity_here/online_workbench.git

    Further Action

    Do Nothing Else Now

  4. This is shown in the following screenshot; click on the Add button:
    Time for action – adding a remote origin using GUI mode
  5. We have now successfully added a remote to our Workbench repository.
  6. To push our code to the online_workbench repository, go to the same Remote menu and select the option Push, which will lead you to the Push Branches window as shown in the following screenshot:
    Time for action – adding a remote origin using GUI mode
  7. By default, master will be selected under Source Branches, and origin will be selected in the listbox for the Remote option under Destination Repository. Leave it as it is, click on the Push button, and wait for some time; it should lead you to a screen where you will be prompted for your Bitbucket account password to proceed as shown in the following screenshot:
    Time for action – adding a remote origin using GUI mode
  8. Upon successful authentication, your content will be synced with the online_workbench repository, which can be understood from the following screenshot:
    Time for action – adding a remote origin using GUI mode

    It says that the master branch of your local Workbench repository is synced with the master branch of the online_workbench repository (more on branches in later chapters).

What just happened?

We just created a remote link for our Workbench repository with the online_workbench repository and pushed our files to it making them available online, thus opening the door for a distributed file system, using GUI mode.

Now if you open your Bitbucket account in your browser you will see history updated on your dashboard as shown in the following screenshot:

What just happened?

This means you can continue your work from anywhere if you have access to a computer with Git and your application software installed on it (it's Microsoft Word in this case as we are dealing with a Word document).

Go ahead and browse through the different tabs available to make yourself comfortable with it. Once you are done with it, let's move to the next half to see how we can resume our work form distributed locations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.124.244