440 B
440 B
Use git
Prefer rebase when pull:
git pull --rebase
Clean outdated branches:
git fetch --prune
Push force safely:
git push --force-with-lease
Save usernames and passwords in ~/.git-credentials
:
git config --global credential.helper store
Use vim
when commit:
git config --global core.editor vim
Rewrite history by changing last x
commits :
git rebase -i HEAD~x