Git: Difference between revisions

109 bytes removed ,  12 April 2014
m
→‎Introduction: fetch+merge -> pull
m (add to Development category)
m (→‎Introduction: fetch+merge -> pull)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==
If you have never used [http://git-scm.com/ Git] before, here is a quick intro to get you started:
If you have never used [http://git-scm.com/ Git] before, here is a quick intro to get you started. For Dolphin-specific workflows, read the [[Contributor's Guide]].


First, set up Git:
First, set up Git:
Line 28: Line 28:
<pre>
<pre>
git remote add upstream https://github.com/dolphin-emu/dolphin.git # add a separate remote for the main repository
git remote add upstream https://github.com/dolphin-emu/dolphin.git # add a separate remote for the main repository
git remote -v                       # now you have two remotes (origin and upstream)
git remote -v               # show remotes, you have two now (origin and upstream)
git fetch upstream                  # update your clone
git checkout master         # make sure you are on the master branch
git checkout master                 # make sure you are on the master branch
git pull --ff-only upstream # pull in new commits from upstream
git merge --ff-only upstream/master # fast-forward to the newest commit of the remote upstream branch
</pre>
</pre>


Line 47: Line 46:
</pre>
</pre>
It may be useful to know that Git branches are actually just labelled pointers into the commit graph.
It may be useful to know that Git branches are actually just labelled pointers into the commit graph.
== Dolphin-specific Git(Hub) Workflow ==
See [[Contributor's Guide]].


[[Category:Development]]
[[Category:Development]]
2,231

edits