Editing Git pull

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>git pull</code> fetch from and integrate with another repository or a local branch.
 
 
* https://git-scm.com/docs/git-pull
 
* https://git-scm.com/docs/git-pull
 
   
 
   
== Commands ==
 
 
git pull
 
git pull -v
 
[[git pull --rebase]]
 
[[git pull origin main]]
 
[[git pull origin master]]
 
[[git pull --all]]
 
 
== Examples ==
 
 
  [[git]] pull  
 
  [[git]] pull  
 
  Already up to date.
 
  Already up to date.
  
   [[git pull -v]]
+
   git pull -v
 
  From github.com:your_account/your_project
 
  From github.com:your_account/your_project
   = [up to date]      [[main]]       -> origin/main
+
   = [up to date]      main      -> origin/main
Already up to date.
 
 
 
git pull -v
 
From github.com:your_account/your_project
 
  = [up to date]      master                      -> origin/master
 
  = [up to date]      [[dependabot]]/pip/ansible-4.2.0 -> origin/dependabot/pip/ansible-4.2.0
 
  = [up to date]      dependabot/pip/lxml-4.6.5    -> origin/dependabot/pip/lxml-4.6.5
 
 
  Already up to date.
 
  Already up to date.
  
Line 41: Line 23:
 
   1 file changed, 1 insertion(+)
 
   1 file changed, 1 insertion(+)
  
ls | [[parallel]] [[git -C]] {} pull</code>
 
  
 
  git pull
 
  git pull
Line 65: Line 46:
 
  fatal: Could not read from remote repository.
 
  fatal: Could not read from remote repository.
  
git pull
 
There is no tracking information for the current branch.
 
Please specify which branch you want to merge with.
 
See git-pull(1) for details.
 
 
    git pull <remote> <branch>
 
 
If you wish to set tracking information for this branch you can do so
 
with:
 
 
    [[git branch]] --set-upstream-to=origin/<branch> main
 
 
[[git]] pull
 
fatal: refusing to merge unrelated histories
 
  
git pull
+
== Related commands ==
Your configuration specifies to merge with the ref 'refs/heads/master'
 
from the remote, but no such [[ref]] was fetched.
 
 
 
git pull
 
fatal: repository 'https://github.com/XXXXXX/' [[not found]]
 
 
 
== Activities ==
 
* Read about the differences between <code>[[git pull]]</code> and <code>[[git fetch]]</code>: https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch
 
 
 
== Related ==
 
 
* {{git get}}
 
* {{git get}}
 
* <code>[[git push]]</code>
 
* <code>[[git push]]</code>
* <code>[[git merge]]</code>
+
* [[git merge]]
 
* <code>[[git config]] [[pull]].[[rebase]] false </code>  # merge (the default strategy)
 
* <code>[[git config]] [[pull]].[[rebase]] false </code>  # merge (the default strategy)
 
* <code>git config pull.rebase true </code>  # rebase
 
* <code>git config pull.rebase true </code>  # rebase
 
* <code>[[git config]] --global pull.[[ff]] only</code>
 
* <code>[[git config]] --global pull.[[ff]] only</code>
* <code>[[git request-pull]]</code>
 
* <code>[[git status]]</code>
 
 
== Related pull commands ==
 
* <code>[[helm pull]]</code>
 
* <code>[[docker pull]]</code>
 
  
 
== See also ==
 
== See also ==
 
* {{git pull}}
 
* {{git pull}}
 +
* {{git}}
  
 
[[Category:git]]
 
[[Category:git]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: