mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-25 01:25:06 +03:00
Add ignoring of local changes
This commit is contained in:
parent
984a4a9805
commit
d43eeeb3cd
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@ CLEAR_COLOR="\033[0m"
|
||||||
|
|
||||||
cd $HOME/.dotfiles
|
cd $HOME/.dotfiles
|
||||||
echo "1) ${GREEN}Upgrading dotfiles$CLEAR_COLOR"
|
echo "1) ${GREEN}Upgrading dotfiles$CLEAR_COLOR"
|
||||||
|
|
||||||
|
# ignore local changes
|
||||||
|
|
||||||
|
git reset --hard HEAD > /dev/null 2>&1
|
||||||
|
|
||||||
if ! git pull > /dev/null 2>&1
|
if ! git pull > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "$HOME/.dotfiles synced"
|
echo "$HOME/.dotfiles synced"
|
||||||
|
|
Loading…
Reference in a new issue