Git -C

From wikieduonline
Revision as of 11:17, 29 September 2020 by Welcome (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  • https://stackoverflow.com/a/33557279
  • Advertising: