1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[git] Use fetch --all in gfu alias

instead of `remote update`. Both behave the same way, fetching from all
configured remotes. The `fetch --all` is shorter, and probably more
familiar. See https://stackoverflow.com/a/17512004/2654518

Also change `;` to `&&`, so merge is only called after fetch succeeded.

Closes #196
This commit is contained in:
Eric Nielsen 2017-07-25 08:28:42 -05:00
parent 8669a4f369
commit a9618a0fd3

View file

@ -71,7 +71,7 @@ alias gf='git fetch'
alias gfc='git clone'
alias gfm='git pull'
alias gfr='git pull --rebase'
alias gfu='git remote update --prune; git merge --ff-only @\{u\}'
alias gfu='git fetch --all --prune && git merge --ff-only @\{u\}'
# Grep (g)
alias gg='git grep'