Contekan Git: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Gibransyah (talk | contribs) New page: * Rollback to specific version * git log * git checkout [commit_hash] [file_name] -> use . at file_name for whole tree |
Gibransyah (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
* git log | * git log | ||
* git checkout [commit_hash] [file_name] -> use . at file_name for whole tree | * git checkout [commit_hash] [file_name] -> use . at file_name for whole tree | ||
* Alias | |||
git config --global alias.co checkout | |||
git config --global alias.br branch | |||
git config --global alias.ci commit | |||
git config --global alias.st status | |||
* Push and create remote branch automatically based on local branch. | |||
git push -u origin local_branch_name | |||
Latest revision as of 17:25, 23 March 2016
- Rollback to specific version
* git log * git checkout [commit_hash] [file_name] -> use . at file_name for whole tree
- Alias
git config --global alias.co checkout git config --global alias.br branch git config --global alias.ci commit git config --global alias.st status
- Push and create remote branch automatically based on local branch.
git push -u origin local_branch_name