Guest User

Untitled

a guest
Jun 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. # Git alias
  2. git config --global alias.co checkout
  3. git config --global alias.ci commit
  4. git config --global alias.st status
  5. git config --global alias.br branch
  6. git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  7.  
  8. &#x1F34E; **Note: all the following commands assume that the above aliases have been set**
  9.  
  10. # Get remote commits
  11.  
  12. ## Rebase my local commits on top of the remote commits
  13. git pull --rebase
  14.  
  15. ## Don't rebase or merge, only fast forward
  16. git pull --ff-only
  17.  
  18. ## See what's in the remote commits in advance
  19. git fetch
  20. git lg
  21.  
  22. # See more log details
  23. git lg --stat
Add Comment
Please, Sign In to add comment