update git

main
Tran Hau 2020-03-19 10:04:02 +07:00
parent b108b8ebd8
commit bcc3698343
1 changed files with 4 additions and 4 deletions

View File

@ -9,13 +9,13 @@ git pull --rebase
Clean outdated branches:
```sh
git fetch --prune origin
git fetch --prune
```
Push force safely:
```sh
git push --force-with-lease origin master
git push --force-with-lease
```
Shallow clone:
@ -54,8 +54,8 @@ Use `vim` when commit:
git config --global core.editor vim
```
Clean up untracked:
Rewrite history:
```sh
git clean -df
git rebase -i HEAD~x
```