4/24/2021 0 Comments How To Use Tortoisegit
Tracking Branches As the local branch is created, it also has a relationship with the remote branch when you do a push or pull or clone.In this tutorial, we will see another Git version control client called TortoiseGit that is installed as an extension to Windows shell.This is very similar to TortoiseSVN if you have worked with it.What You Will Learn: Introduction To TortoiseGit Basics Of TortoiseGit Clone The Repository From GitHub Basic Commit And Push To GitHub Creating Branches Tracking Branches Switch To A Branch Looking At The Log Comparing Branches Resolving Conflicts Stash Changes Conclusion Recommended Reading Introduction To TortoiseGit TortoiseGit is a free open-source client tool for Git-based repositories and manages files along with tracking changes to it.
The latest release of TortoiseGit can be downloaded and installed from here 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. Basics of TortoiseGit Commit files Creating branches Resolving conflicts and merging. ![]() Clone The Repository From GitHub To begin with lets start by cloning the repository from GitHub to work on the same in the local repository. Click Ok once done. The contents of the GitHub repository that is cloned is now available locally. Basic Commit And Push To GitHub Now as the GitHub repository contents are available locally lets modify a file, commit and push the changes to GitHub. In the following screen, you can commit the changes by clicking on the Commit button. Add a commit message and select a few other options as shown and click on Commit. Once the commit is done, you can now push the changes as well to the GitHub. Click on the Push-button. Click Ok. The changes would now be available in your GitHub repository. As seen above, the back to back operations of Add-Commit-Push can be done once the files are modified in the local repository. To look at the history of changes for the file, right-click on the file and go to TortoiseGit Show Log To look at the Differences with the previous version, right-click on the file and select TortoiseGit Diff with the previous version. To pull changes from the remote repository select TortoiseGit Pull Click Ok on the Pull screen that comes up. Creating Branches Master is the main branch for every repository that would typically contain code for production deployment or for your releases. ![]() Thus, the development teams would normally create additional branches like feature, bug, enhancement, etc. Use Tortoisegit How To Create BranchesLets look at how to create branches in the local repository using TortoiseGit and push the changes back to the remote repository. Right-Click in the File explorer within the repository and select TortoiseGit Create Branch. Name it enhancement and select the checkbox Switch to the new branch. Click Ok. Make a change to the file in the enhancement branch and commit the same. In the commit screen, you can also diff with the file in the master branch. Right-click on the file and select Compare with the base which is master in this case.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |