Tran Hau 2020-05-09 01:51:01 +07:00
parent cba07dd1b2
commit f63a69ebf2
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
# 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:
```sh