Difference between revisions of "Git -C"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/33557279
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | git -C <path> | + | git -C <path> run as if git was started in <path> instead of the current working directory. |
* Pull subdirectories: | * Pull subdirectories: | ||
Line 7: | Line 7: | ||
::<code>ls | parallel git -C {} fetch</code> | ::<code>ls | parallel git -C {} fetch</code> | ||
:: <code>-C <PATH></code> run as if git was started in <path> instead of the current working directory. | :: <code>-C <PATH></code> run as if git was started in <path> instead of the current working directory. | ||
− | |||
Revision as of 11:04, 11 February 2022
git -C <path> run as if git was started in <path> instead of the current working directory.
- Pull subdirectories:
See also
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: