update git
parent
b108b8ebd8
commit
bcc3698343
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue