Difference between revisions of "Git -C"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/33557279
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. | ||
+ | |||
+ | == Related == | ||
+ | * [[git pull]] | ||
+ | |||
== See also == | == See also == | ||
* {{git pull}} | * {{git pull}} | ||
+ | * {{git}} | ||
[[Category:Git]] | [[Category:Git]] |
Revision as of 08:55, 16 August 2024
git -C <path> run as if git was started in <path> instead of the current working directory.
- Pull subdirectories:
Related
See also
git pull
[-v | -a
]git request-pull
,git pull origin master
Pull Request (PR),--no-rebase, --rebase
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: