PCSX2 Documentation/Git Survival Guide: Difference between revisions
PCSX2 Documentation/Git Survival Guide (view source)
Revision as of 23:10, 8 January 2015
, 8 January 2015→Branch or how to separate your work by feature
No edit summary |
|||
Line 29: | Line 29: | ||
==Branch or how to separate your work by feature== | ==Branch or how to separate your work by feature== | ||
Please note that master is actually the default branch | Please note that master is actually the default branch | ||
* List branches: git branch -v | * List branches: <code>git branch -v</code> | ||
* Switch to another branch: git checkout | * Switch to another branch: <code>git checkout <branch></code> | ||
* Creates: git branch | * Creates: git branch <code><branch></code> | ||
* Delete branches: git branch -d | * Delete branches: git branch -d <code><branch></code> | ||
* Set the base reference of the branch (for rebase): git branch --set-upstream-to= | * Set the base reference of the branch (for rebase): git branch --set-upstream-to=<code><remote><branch_name></code> | ||
# Git use case example | # Git use case example |