git
parent
cba07dd1b2
commit
f63a69ebf2
|
@ -1,5 +1,15 @@
|
||||||
# Git
|
# Git
|
||||||
|
|
||||||
|
Add to `~/.bashrc`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
[[ -f /usr/share/git/completion/git-completion.bash ]] && \
|
||||||
|
source /usr/share/git/completion/git-completion.bash
|
||||||
|
[[ -f /usr/share/git/completion/git-prompt.sh ]] && \
|
||||||
|
source /usr/share/git/completion/git-prompt.sh
|
||||||
|
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
|
||||||
|
```
|
||||||
|
|
||||||
Prefer rebase when pull:
|
Prefer rebase when pull:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in New Issue