Difference between revisions of "Retrieve Remote Changes"

From wikieduonline
Jump to navigation Jump to search
 
Line 11: Line 11:
  
 
== Related ==
 
== Related ==
* [[git fetch origin]] && [[git merge]]
+
* <code>[[git fetch origin]] && [[git merge]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 11:06, 7 July 2025

  • Pull/get changes from a remote repository to have latest version of the code
    • Pull/get changes from a remote repository to your local repository using the command:
git pull or git pull <name> <branch>
git pull -v (for more verbose output)
git fetch
gfind $1 -name ".git" | gsed -r 's|/[^/]+$||' | parallel "echo {}; git -C {} pull" (git pull all your repos in parallel, MacOS version)
  • 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.

Related[edit]

See also[edit]

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