alias - Aliased Git Commands: '.;' did not match any files -


i trying create alias pull without having commit first. first tried this:

git config --global alias.pulluc 'git add .; git stash; git pull; git stash pop; git reset; 

when running git pulluc, got complaints 'git' not git command. changed to:

git config --global alias.pulluc 'add .; stash; pull; stash pop; reset; 

now when run git pulluc fatal pathspec: '.;' did not match files

how can include git add . in list of commands in alias?

from git-config(1) man page:

if alias expansion prefixed exclamation point, treated shell command...

since you're attempting create alias small shell script (a sequence of commands separated ;), need prefix alias exclamation point.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -