Difference between revisions of "Contekan Git"

From OnnoWiki
Jump to navigation Jump to search
 
Line 8: Line 8:
 
  git config --global alias.ci commit
 
  git config --global alias.ci commit
 
  git config --global alias.st status
 
  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 00:25, 24 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