git -C

From wikieduonline
Revision as of 11:00, 11 February 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

  • Pull subdirectories:
ls | parallel git -C {} pull (assuming all sub-dirs are git repositories)[1]
ls | parallel git -C {} fetch
-C <PATH> run as if git was started in <path> instead of the current working directory.


See also

Advertising: