Setting up git: Difference between revisions

Jump to navigation Jump to search
18 bytes added ,  14:01, 11 July 2019
Why does the wiki not apply certain edits?
imported>Oranges
m (Add video guides to git)
(Why does the wiki not apply certain edits?)
(4 intermediate revisions by the same user not shown)
Line 47: Line 47:
== Step 5 - Forking Code ==
== Step 5 - Forking Code ==


* Head over to: https://github.com/tgstation/-tg-station
* Head over to: https://github.com/yogstation13/Yogstation-TG
* Click the '''Fork''' button in the top right corner.
* Click the '''Fork''' button in the top right corner.
* 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 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 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
* 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/Yogstation-TG


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


* Right click '''on the folder that was created''' (usually called -tg-station13), and go to '''TortoiseGit''' and then click on '''Settings'''.
* Right click '''on the folder that was created''' (usually called Yogsstation-TG), 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 of remotes, with the name: '''origin'''.
* There should be one thing on the list of remotes, with the name: '''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'''.
* In the '''Remote''' box type in '''upstream'''.
* In the '''URL:''' box put: https://github.com/tgstation/-tg-station.git
* In the '''URL:''' box put: https://github.com/yogstation13/Yogstation-TG.git
* Click '''Add New/Save'''.
* Click '''Add New/Save'''.
* Click '''Ok'''.
* Click '''Ok'''.
Line 104: Line 104:
* 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-station13.git
* Head to your GitHub repo e.g https://github.com/NAME/Yogstation-TG.git
* Click '''Pull Request''' at the top right.
* Click '''Pull Request''' at the top right.
* [[Getting_Your_Pull_Accepted|Give this a quick read.]]  
* [[Getting_Your_Pull_Accepted|Give this a quick read.]]  
Line 117: Line 117:
:[remote "upstream"]
:[remote "upstream"]
::fetch = +refs/heads/*:refs/remotes/upstream/*
::fetch = +refs/heads/*:refs/remotes/upstream/*
::url = https://github.com/tgstation/-tg-station.git
::url = https://github.com/yogstation13/Yogstation-TG.git


*Now add the following line:
*Now add the following line:
5

edits

Navigation menu