Setting up git: Difference between revisions

Jump to navigation Jump to search
290 bytes added ,  16:01, 3 December 2013
Corrected bad advise being given to new coders.
imported>Intigracy
No edit summary
imported>Neerti
(Corrected bad advise being given to new coders.)
Line 87: Line 87:


* A commit is confirmed change of the files in your repo, it's how you make changes permanently to the files in your repo, so try not to commit without making sure it works (though subsequent commits can fix it).
* A commit is confirmed change of the files in your repo, it's how you make changes permanently to the files in your repo, so try not to commit without making sure it works (though subsequent commits can fix it).
* To make your commits, you need to edit the files using BYOND's inbult editing tools. These won't be discussed here, there are plenty of other guides! Then, when you're finished, right click the folder you're working with and choose '''Git Commit -> "master"'''
* As said before, you should use different branches to separate your commits/changes.  Don't commit to master.  It should be clean, so you can fall back on it if needed.
* To make your commits, you need to edit the files using BYOND's inbult editing tools. These won't be discussed here, there are plenty of other guides! Then, when you're finished, right click the folder you're working with and choose '''Git Commit -> "[Your Branch Name]"''' (Example: Git Commit -> "My_First_Branch")
* You can then select only the files you want to be committed by ticking or unticking them. You should also write a detailed commit summary, detailing what happened in that commit.
* You can then select only the files you want to be committed by ticking or unticking them. You should also write a detailed commit summary, detailing what happened in that commit.
* Click '''Ok''' and the commit will be committed to your local repo!
* Click '''Ok''' and the commit will be committed to your local repo!
Line 94: Line 95:


* Right-click in your working folder. Then choose '''TortoiseGit''', and '''Push...'''
* Right-click in your working folder. Then choose '''TortoiseGit''', and '''Push...'''
* Set Local: and Remote: to '''master'''
* Set '''Local''' and '''Remote''' to the name of the branch you committed before. (e.g. My_First_Branch)
* Under Destination, set Remote: to '''origin'''.
* Under Destination, set Remote: to '''origin'''.
* Click '''Ok'''. This'll upload your changes to your remote repo (the one on GitHub).
* Click '''Ok'''. This'll upload your changes to your remote repo (the one on GitHub).
Anonymous user

Navigation menu