Difference between revisions of "Git -C"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/33557279
(Created page with "* Pull subdirectories: ::<code>ls | parallel git -C {} pull</code> (assuming all sub-dirs are git repositories)<ref>https://stackoverflow.com/a/33557279</ref> ::<code>ls | par...") |
|||
Line 1: | Line 1: | ||
* Pull subdirectories: | * Pull subdirectories: | ||
− | ::<code>ls | parallel git -C {} pull</code> (assuming all sub-dirs are git repositories)<ref>https://stackoverflow.com/a/33557279</ref> | + | ::<code>ls | [[parallel]] git -C {} pull</code> (assuming all sub-dirs are git repositories)<ref>https://stackoverflow.com/a/33557279</ref> |
::<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:17, 29 September 2020
- 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: