Guest User

Untitled

a guest
Dec 13th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #view the history of the repo
  2. git log --oneline --abbrev-commit --all --graph --decorate
  3.  
  4. #view whitespace issues.
  5. git diff --check
  6.  
  7. #common flow
  8. git branch blabla #(creo branch blabla)
  9. git checkout blabla
  10. #hago 10 commits
  11.  
  12. #rebase (either a, b or c)
  13. #======
  14. #a. si no branch (master):
  15. git fetch origin
  16. git rebase origin/master
  17. #b. si branch blabla:
  18. git fetch origin
  19. git rebase master blabla
  20. git checkout master
  21. git branch -d blabla #(borro el branch blabla)
  22. git push origin :blabla #si el branch esta en el remote.
  23. #push back to origin.
  24. git push origin
  25.  
  26. #submodules
  27. git submodule init
  28. git submodule update
  29.  
  30. #undo change in file.
  31. git checkout -- file.txt
  32. #undo all changes.
  33. git checkout -- .
Add Comment
Please, Sign In to add comment