mirror of https://github.com/PCSX2/pcsx2.git
Updated Git survival guide (markdown)
parent
8c9071a41c
commit
5aa147af38
|
@ -1,10 +1,10 @@
|
|||
There is a lots of guide/docs on internet but there are too big and confusing. You will find here a mini guide to use git with a minimal number of command and parameters. You won't find any details or explication of git internal mechanism here.
|
||||
|
||||
## Remote Transfer or how to communicate with the world
|
||||
* Get a fresh repository: git clone `<remote>`
|
||||
* Get a fresh repository: git clone `<remote path>`
|
||||
* Update current repository to latest: git fetch -v
|
||||
* Update current repository with commit from a fork: git fetch -v `<remote>` `<branch>`
|
||||
* Send your new commit to the remote: git push
|
||||
* Update current repository with commit from a fork: git fetch -v `<remote path>` `<branch>`
|
||||
* Send your new commit to the remote: git push `<remote>` `<branch>`
|
||||
|
||||
## Commit or how to communicate with your local repository
|
||||
* staged your change: git add/rm -p `<file>`
|
||||
|
@ -29,9 +29,9 @@ Stash is very useful. For example, your will use it before/after (push/pop) merg
|
|||
## Branch or how to separate your work by feature
|
||||
Please note that master is actually the default branch
|
||||
* List branches: git branch -v
|
||||
* Switch to another branch: git checkout `<branch_name>`
|
||||
* Creates: git branch `<branch_name>`
|
||||
* Delete branches: git branch -d `<branch_name>`
|
||||
* Switch to another branch: git checkout `<branch>`
|
||||
* Creates: git branch `<branch>`
|
||||
* Delete branches: git branch -d `<branch>`
|
||||
* Set the base reference of the branch (for rebase): git branch --set-upstream-to=`<remote>` `<branch_name>`
|
||||
|
||||
## Branch use case
|
||||
|
|
Loading…
Reference in New Issue