You can go from one branch to the other by just checking out the one you want.Ĭommit: To commit your changes to your branch means to add to the branch you are currently working on whatever modifications you brought to your code. You can only checkout one branch at a time while other developers might be working on other branches. All the other branches still exist but they are not used by you. The main branch is usually labeled “Master”.Ĭheckout: To checkout a branch means to make that branch the currently active branch, the one you are working on. Branches are used to work on specific features or fixes without touching the main branch. One repository can have as many branches as needed. Typically you fork a repository so you can work on it.Ĭlone: When you have a remote repository (on GitHub or elsewhere) and you want to make a local copy (on your computer) you clone it.īranch: To branch one of your own repository means to create a new copy of your code under the same repository. Under the same GitHub account, only one fork of each repository is allowed. You can have a local repository (on your computer) and a remote repository (on GitHub or elsewhere) and you will usually work locally and later push the code remotely.įork: To fork somebody else’s repository means to make a copy of it under your own Git environment, your GitHub account for instance. Repository: This is where your files are, where your code is preserved. The essential concepts you’ll need to understand You can also check this list of other Git GUIs for Windows. I am sure GitHub Desktop has come a long way since my first try so by all mean give it a go and see for yourself. I started working with SourceTree and found it easier and more complete. Although it’s a trimmed-down GUI I found it confusing and couldn’t figure out some of the things I needed. I looked at it when it first came out and, as a beginner, I wasn’t impressed. GitHub offers its own free desktop Git GUI: GitHub Desktop. If not go ahead and create one, I’ll wait. This guide assumes you already have a GitHub account. Using Concrete5's public GitHub repository let’s see how we can contribute code to it with the help of SourceTree a free Git GUI for Windows and Mac. Luckily Git is more approachable than it seems and there are ways around the command line. Posted by Nour Akalay on DecemUpdated on October 8, 2020. Let’s be honest, Git can feel intimidating and the command line downright scary. The Git and SourceTree beginner's guide to contributing to open-source projects in GitHub - Part 1 - Essential conceptsĬontributing code to open-source projects on GitHub requires a working knowledge of Git.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |