git pull origin master
will pull changes from the origin
remote, master
branch and merge them to the local checked-out branch.
git pull origin/master
will pull changes from the locally stored branch origin/master
and merge that to the local checked-out branch. The origin/master
branch is essentially a “cached copy” of what was last pulled from origin
, which is why it’s called a remote branch in git parlance. This might be somewhat confusing.
You can see what branches are available with git branch
and git branch -r
to see the “remote branches”.
Related Posts:
- Git: How do I force “git pull” to overwrite local files?
- How do I rename a local Git branch?
- How do I discard unstaged changes in Git?
- Git: How to squash all commits on branch
- Undo git pull, how to bring repos to old state
- Undo git pull, how to bring repos to old state
- Is it better to create a Git repository at the root level or in the WordPress theme directory?
- WordPress and Git: How does Git interact with your IDE? [closed]
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- How do I undo the most recent local commits in Git?
- How can I switch to another branch in git?
- How do I discard unstaged changes in Git?
- Git: How do I force “git pull” to overwrite local files?
- Download single files from GitHub
- How can I make git accept a self signed certificate?
- How can I revert multiple Git commits (already pushed) to a published repository?
- What does “Git push non-fast-forward updates were rejected” mean?
- What is the difference between ‘git pull’ and ‘git fetch’?
- Git: cannot do a partial commit during a merge (SourceTree)
- Git: How do I force “git pull” to overwrite local files?
- What is the meaning of git reset –hard origin/master?
- How can I reset or revert a file to a specific revision?
- Else clause on Python while statement
- Delete all local git branches
- Why does ‘git commit’ not save my changes?
- How can I undo git reset –hard HEAD~1?
- Set up git to pull and push all branches
- git push to specific branch
- Get changes from master into branch in Git
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- how to reset develop branch to master
- Do I commit the package-lock.json file created by npm 5?
- Rebasing remote branches in Git
- How can I see the changes in a Git commit?
- What is the Git equivalent for revision number?
- How can I delete all Git branches which have been merged?
- difference between git merge origin/master and git pull
- What’s a good (free) visual merge tool for Git? (on windows)
- Getting Started with Subversion, Git, or similar Version Control System to keep a History of my Files? [closed]
- Best way to version control WordPress template files?
- Should I use SVN or Git?
- WordPress Health Tool reporting version control as a critical issue
- storing database in version control
- Versioning and your WordPress site?
- Pull latest stable release via git [closed]
- How to make changes on WordPress site locally on live site?
- How should I be handling my theme version numbering?
- Version control with a team of non-developers
- Painless way to track remote Git repo for WordPress updates
- Questions about Git and WordPress [duplicate]
- How to change version numbers in themes from Official repository?
- Checking for a new version from WP Repos
- How to rename the wp-config.php file once under version control?
- When developing entire sites for clients, is it viable to version control the entire site? [duplicate]
- WordPress project under Mercurial, what’s an appropriate .hgignore file?
- How to use one git (github) repository for version control for multiple themes
- version control for wordpress? (wordpress folder and database at same time)
- Revision History for Entire WordPress Site
- If you already have a copy of the code, is there any reason to create a feature branch?
- How to use Git Revert
- Remove files from Git commit
- Undoing a git rebase
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How do I revert a Git repository to a previous commit?
- How to revert multiple git commits?
- How do I fix a Git detached head?
- How do I diff the same file between two different commits on the same branch?
- You have not concluded your merge (MERGE_HEAD exists)
- How to get the current branch name in Git?
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Branch from a previous commit using Git
- Git Bash won’t run my python files?
- Hard reset of a single file
- Undo git stash pop that results in merge conflict
- How to clone all remote branches in Git
- Git Push ERROR: Repository not found
- npm ERR! No git binary found in $PATH
- SourceTree keeps asking for Github password
- How to change the license for a project at Github?
- How do I pull files from remote without overwriting local files?
- Git push existing repo to a new and different remote repo server?
- How to keep a branch synchronized/updated with master?
- Your repository has no remotes configured to push to
- Specify an SSH key for git push for a given domain
- How do I “un-revert” a reverted Git commit?
- git push not send changes to remote git repository
- Pod install is staying on “Setting up CocoaPods Master repo”
- How to use Git and Dropbox together?
- Git: Where exactly is the “working directory”?
- Deploying Updated or New Plugins That Modify the wp_options Table
- Does WordPress check for updates of a plugin via plugins root folder name?
- SymmetricDS in dev + prod workflow?
- Git ignore everything except custom theme directory
- How to make a copy of a local wordpress build in MAMP?
- GIT as a backup tool
- What solutions exist to allow the use of revision control for server configuration files? [closed]
- How to remove pop up on website (css changes not visible)?