Difference between revisions of "Retrieve Remote Changes"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* 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: :::<cod...")
 
Line 13: Line 13:
 
* [[git fetch origin]] && [[git merge]]
 
* [[git fetch origin]] && [[git merge]]
  
 +
== See also ==
 +
* {{git fetch}}
  
{{git fetch}}
+
[[Category:Git]]

Revision as of 11:05, 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

See also

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