mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-10 02:05:16 +03:00
Add ignoring of local changes
This commit is contained in:
parent
984a4a9805
commit
d43eeeb3cd
|
@ -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