Question #6855   Submitted by Answiki on 10/10/2022 at 06:37:54 PM UTC

How to run a Git command in another folder?

Answer   Submitted by Answiki on 10/10/2022 at 06:39:28 PM UTC

The -C option of git allows to execute the command as if it was launched from another directory specified in option:

git -C /my/folder/ pull






2 events in history
Answer by Answiki on 10/10/2022 at 06:39:28 PM

The -C option of git allows to execute the command as if it was launched from another directory specified in option:

git -C /my/folder/ pull






Question by Answiki 10/10/2022 at 06:37:54 PM
How to run a Git command in another folder?
# ID Query URL Count

Icons proudly provided by Friconix.