One minute read
I wish I knew that earlier, it would save a lot of
$ git -C /dir/you/want/to/pull/push push # with verbose output $ git -C /dir/you/want/to/pull/push push -v
-C flag needs git > 1.8.5
It means that with
-C flag you can specify the directory you want to interact
with. I normally go into the directory than push:
$ cd /dir/you/want/to/pull/push && git pull # or push
If you are enjoying my content, maybe you would enjoy buying me a coffee as well.
Just a food for thought.