PCSX2 Documentation/Git Survival Guide: Difference between revisions
PCSX2 Documentation/Git Survival Guide (view source)
Revision as of 19:58, 9 January 2015
, 9 January 2015no edit summary
No edit summary |
|||
Line 1: | Line 1: | ||
There are a | There are a lot of guides/docs on the internet but they are too big and confusing. You will find here a mini guide to use git with a minimal number of commands and parameters. You won't find any details or explications of git's internal mechanisms here. | ||
==Git Guide== | ==Git Guide== | ||
Line 56: | Line 56: | ||
* Unstage: <code>git reset HEAD --</code> | * Unstage: <code>git reset HEAD --</code> | ||
At this stage of operation, you | At this stage of operation, you have all your changes in the local file but nothing is ready to be committed. | ||
''Repeat the 2 next commands for each new commit that you want to create'' | |||
* staged your change with dynamic selection: <code>git add/rm -p <file></code> | * staged your change with dynamic selection: <code>git add/rm -p <file></code> | ||
* commit your change: <code>git commit</code> | * commit your change: <code>git commit</code> | ||
Once you have finished to split your commit: | ''Once you have finished to split your commit:'' | ||
* finish the rebase: <code>git rebase --continue</code> | * finish the rebase: <code>git rebase --continue</code> |