mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Rebase instead of pull when upgrading
In order to keep local changes and/or prevent conflicts
This commit is contained in:
parent
de2d07bd2e
commit
34792a68e4
1 changed files with 2 additions and 1 deletions
|
|
@ -3,8 +3,9 @@ current_path=${current_path/ /\\ }
|
|||
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
|
||||
cd "$ZSH"
|
||||
|
||||
if git pull origin master
|
||||
if git fetch origin
|
||||
then
|
||||
git rebase origin/master
|
||||
printf '\033[0;32m%s\033[0m\n' ' __ __ '
|
||||
printf '\033[0;32m%s\033[0m\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
|
||||
printf '\033[0;32m%s\033[0m\n' ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue