Right-click on the file and select Compare with the base which is master in this case.Ĭlick on Ok. In the commit screen, you can also diff with the file in the master branch. Make a change to the file in the enhancement branch and commit the same. Name it enhancement and select the checkbox Switch to the new branch. Right-Click in the File explorer within the repository and select TortoiseGit =>Create Branch.
Let’s look at how to create branches in the local repository using TortoiseGit and push the changes back to the remote repository. to isolate their work from others and then merge the changes to the main master branch. Thus, the development teams would normally create additional branches like feature, bug, enhancement, etc. So, the master branch in a way would be protected by the teams to avoid direct commits to it.
Master is the main branch for every repository that would typically contain code for production deployment or for your releases. To pull changes from the remote repository select TortoiseGit =>PullĬlick Ok on the Pull screen that comes up. To look at the Differences with the previous version, right-click on the file and select TortoiseGit =>Diff with the previous version.
To look at the history of changes for the file, right-click on the file and go to TortoiseGit => Show Log As seen above, the back to back operations of Add-Commit-Push can be done once the files are modified in the local repository. Launch GitHub and look at the contents of the file. The changes would now be available in your GitHub repository. Once the commit is done, you can now push the changes as well to the GitHub. In the following screen, you can commit the changes by clicking on the Commit button.Īdd a commit message and select a few other options as shown and click on Commit. Once done right-click and select + Add to stage the changes. Now as the GitHub repository contents are available locally let’s modify a file, commit and push the changes to GitHub. The contents of the GitHub repository that is cloned is now available locally.
Right-click in free space and select Git Clone.Įnter the GitHub repository clone https URL and the local directory to download and store the copy of the artifacts. Open the File Explorer in your Windows machine. To begin with let’s start by cloning the repository from GitHub to work on the same in the local repository. TortoiseGit is installed as a Windows shell extension and can be accessed and invoked from the context menu by right-clicking on the local git repository or a folder. In this tutorial, we will focus on the developer activities by cloning the repository from GitHub and performing the following activities in the local repository. The latest release of TortoiseGit can be downloaded and installed from here TortoiseGit is a free open-source client tool for Git-based repositories and manages files along with tracking changes to it.