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