pwd
is "present working directory". Here's the situation.
pwd: /path/to/pwd/
git repository: /repo/path/.git/
I want to do a git pull from origin, but without changing my current directory.
To clarify just a little more in case I'm not clear enough, this is the result I want, but I want to do it with one command instead of having to change directories:
$ cd /repo/path
$ git pull origin master
$ cd -
git --work-tree=/repo/path --git-dir=/repo/path/.git pull origin master
bash -c "cd /repo/path; git pull origin master"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With