diff --git a/dotfiles/lib/shellenv/git-sync.sh b/dotfiles/lib/shellenv/git-sync.sh index e1bb7bd5..3b42a40e 100644 --- a/dotfiles/lib/shellenv/git-sync.sh +++ b/dotfiles/lib/shellenv/git-sync.sh @@ -6,7 +6,7 @@ function git-sync { # This won't work for branches other than master git rebase origin/master - rsync -t $target/* $destination + rsync -rt $target/* $destination git add . git commit -am "$(date)" git push origin HEAD