Setting up git: Difference between revisions

Jump to navigation Jump to search
No change in size ,  16:45, 13 April 2014
no edit summary
imported>Neerti
(Corrected bad advise being given to new coders.)
imported>Errorage
No edit summary
Line 6: Line 6:
== If you are having trouble ==
== If you are having trouble ==
Watch this video guide if you are having difficulty with any step below. [http://www.youtube.com/watch?v=Z5tTCo6IHLg]
Watch this video guide if you are having difficulty with any step below. [http://www.youtube.com/watch?v=Z5tTCo6IHLg]
If you have further problems, contact someone on [[Community|#coderbus]]
If you have further problems, contact someone on [[Community|#nanobus]]


== Step 1 - Install Git ==
== Step 1 - Install Git ==
Line 40: Line 40:
== Step 5 - Forking Code ==
== Step 5 - Forking Code ==


* Head over to: https://github.com/tgstation/-tg-station
* Head over to: https://github.com/NTStation/NTStation13
* Click the '''Fork''' button in the top right corner.
* Click the '''Fork''' button in the top right corner.
* Experience hardcore forking action.
* Experience hardcore forking action.
* The page you'll be directed to is now your fork. You'll be pushing updates here, and making pull requests to have them merged the the main (master) repository.
* The page you'll be directed to is now your fork. You'll be pushing updates here, and making pull requests to have them merged the the main (master) repository.
* Copy the HTTP URL. It's next to the '''HTTP''' '''GIT''' and '''Git Read-Only''' buttons. It'll look something like: https://github.com/NAME/-tg-station.git
* Copy the HTTP URL. It's next to the '''HTTP''' '''GIT''' and '''Git Read-Only''' buttons. It'll look something like: https://github.com/NAME/NTStation13.git


== Step 6 - Downloading the Code ==
== Step 6 - Downloading the Code ==
Line 55: Line 55:
== Step 7 - Setting up TortoiseGit ==
== Step 7 - Setting up TortoiseGit ==


* Right click '''on the folder that was created''' (usually called -tgstation), and go to '''TortoiseGit''' and then click on '''Settings'''.
* Right click '''on the folder that was created''' (usually called NTStation13), and go to '''TortoiseGit''' and then click on '''Settings'''.
* Click on '''Remote''' under '''Git'''.
* Click on '''Remote''' under '''Git'''.
* There should be one thing on the list '''origin'''.
* There should be one thing on the list '''origin'''.
* You're now adding the main repository as a source you can pull updates from.
* You're now adding the main repository as a source you can pull updates from.
* In the '''Remote''' box type in '''upstream''' (or whatever you like).
* In the '''Remote''' box type in '''upstream''' (or whatever you like).
* In the '''URL:''' box put: https://github.com/tgstation/-tg-station.git
* In the '''URL:''' box put: https://github.com/NTStation/NTStation13.git
* Click '''Add New/Save'''.
* Click '''Add New/Save'''.
* Click '''Ok'''.
* Click '''Ok'''.
Line 98: Line 98:
* 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).
* Head to your GitHub repo e.g https://github.com/NAME/-tg-station.git
* Head to your GitHub repo e.g https://github.com/NAME/NTStation13.git
* Click '''Pull Request''' at the top right.
* Click '''Pull Request''' at the top right.
* Fill out a summary and then create the pull request.
* Fill out a summary and then create the pull request.
Anonymous user

Navigation menu