So we still need to upload these changes to our "master" branch on our local computer to our GitHub repository on the GitHub server, which for me is "danielb987/JMRI". What has happened is that we merged "upstream/master" from JMRI/JMRI to our "master" branch in our repository on our local computer. danielb987/JMRI - My repository on the GitHub server.JMRI/JMRI - The main repository for the JMRI project on the GitHub server.For me, my username on GitHub is danielb987, so I'm working with these three repositories: This is what happened: We are working with three different repositories. It's now time to upload these commits to our repository on the GitHub server. Yes, we downloaded the commits from upstream/master into our local master on the local computer. The number 14 tells that there are 14 commits to upload to the server.īut wait! Why do we want to _upload_ the commits? Haven't we just downloaded them from JMRI? The button "Fetch origin" has now changed its name to "Push origin". Then go to the main menu, click on "Branch" and "Merge into current branch". We therefore need to keep our local branches up to date with the JMRI master branch.įirst, select the "master" branch to keep it up to date with the JMRI master branch. Keeping our branches up to date with JMRI There are several developers on the JMRI project, adding and changing code all the time. When it says "Fetch origin", it only syncs the computer with the server, but once there is commits to either download from the GitHub server to the local computer, or commits to upload from the local computer to the server, this button will tell you about it and once you press the button, the commits will be downloaded or uploaded to the server. The last button, "Fetch origin", sends data to and from the GitHub web server. Note that branches are cheap, so there is no problem creating new ones as needed. The button "Current branch" is used to select another branch or to create a new branch. It can also be accessed by pressing the "Alt" key, which is useful if GitHub Desktop is in full screen mode and the menu is invisible.īelow the menu, there is three "buttons": Current repository, current branch and the Fetch-button. The GitHub Desktop application has on the top a menu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |