Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #view the history of the repo
- git log --oneline --abbrev-commit --all --graph --decorate
- #view whitespace issues.
- git diff --check
- #common flow
- git branch blabla #(creo branch blabla)
- git checkout blabla
- #hago 10 commits
- #rebase (either a, b or c)
- #======
- #a. si no branch (master):
- git fetch origin
- git rebase origin/master
- #b. si branch blabla:
- git fetch origin
- git rebase master blabla
- git checkout master
- git branch -d blabla #(borro el branch blabla)
- git push origin :blabla #si el branch esta en el remote.
- #push back to origin.
- git push origin
- #submodules
- git submodule init
- git submodule update
- #undo change in file.
- git checkout -- file.txt
- #undo all changes.
- git checkout -- .
Add Comment
Please, Sign In to add comment