git -C
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/33557279
git -C <path> run as if git was started in <path> instead of the current working directory.
Pull all repos in a path, including subdirectories:
find . -name ".git" -type d | sed 's/\/.git//' | parallel 'echo -e "\n=== {} ===" && git -C {} pull 2>&1'
- Pull directories, not subdirectories:
git fetch -C /path/to/git/folder
Errors[edit]
Related[edit]
See also[edit]
git -Cgit pull[-v | -a]git request-pull,git pull origin masterPull Request (PR),--no-rebase, --rebasegit fetch [ --all | origin ],git auto-fetch,git -C,git.autofetch,git-auto-fetch (zsh)
Advertising: