I found an incantation that worked for me:
git fetch origin master:master
then (if you want to merge right away):
git merge master
I was really surprised how hard it was to find an answer to this since it seems like it would be a common use case.
Related Posts:
- Handling file renames in Git
- Why are there two ways to unstage a file in Git?
- ‘git’ is not recognized as an internal or external command
- ‘git’ is not recognized as an internal or external command
- How to remove origin from git repository
- What’s the purpose of git-mv?
- git : Pull is not possible because you have unmerged files
- Why git asks to enter a commit message to explain why this merge is necessary
- How do I remove version tracking from a project cloned from git?
- How do I remove version tracking from a project cloned from git?
- Download a specific tag with Git
- Git push won’t do anything (everything up-to-date)
- git add . -> still “nothing to commit” with new files
- git submodule add error: does not have a commit checked out
- Git error on git pull (unable to update local ref)
- git status shows modifications, git checkout —
doesn’t remove them - How to resolve git’s “not something we can merge” error
- How to clone all remote branches in Git
- Update Git branches from master
- How to squash all git commits into one?
- How to interactively (visually) resolve conflicts in SourceTree / git
- How can I delete all of my Git stashes at once?
- git add only modified changes and ignore untracked files
- Remove node_modules from git in vscode
- What’s the use of the staging area in Git?
- git push –force-with-lease vs. –force
- How can I move a tag on a git branch to a different commit?
- What firewall ports need to be open to allow access to external git repositories?
- How do I prevent apache from serving the .git directory?
- how to set the background color of the status bar during the launching phase [duplicate]
- What is a MIME type?
- What does ‘–set-upstream’ do?
- What does ‘–set-upstream’ do?
- How is the AND/OR operator represented as in Regular Expressions?
- How to open a “-” dashed filename using terminal?
- How do I rename a local Git branch?
- 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?
- Error ORA-00054 resource busy and acquire with NOWAIT specified or timeout expired in oracle11g
- Where to get php_mcrypt.dll for PHP 7.2?
- Git – Ignore node_modules folder everywhere
- How to pull from one remote branch to another branch in git?
- Git: cannot do a partial commit during a merge (SourceTree)
- How to convert .crt cetificate file to .pfx
- Hard reset of a single file
- Manually create a pyspark dataframe
- How to remove remote origin from a Git repository
- Couchbase query using “\uefff” break the next conditional keys
- How do you loop in a Windows batch file?
- Android Completely transparent Status Bar?
- How to sign-extend a number in Verilog
- How to draw a checkmark / tick using CSS?
- c array – warning: format not a string literal
- How can I add numbers in a Bash script?
- Swift protocols: method does not override any method from its superclass
- What is index.js used for in node.js projects?
- Reference Error: moment is not defined (Using moment.js)
- Git’s local repository and remote repository — confusing concepts
- What should be hadoop.tmp.dir ?
- How does DHT in torrents work?
- C++ undefined reference to WinMain@16 (Code::Blocks)
- How can I see which Git branches are tracking which remote / upstream branch?
- Git error: “Host Key Verification Failed” when connecting to remote repository
- python 3.x ImportError: No module named ‘cStringIO’
- error: unknown type name ‘bool’
- git undo all uncommitted or unsaved changes
- How can I enable Assembly binding logging?
- How to create a local branch from an existing remote branch?
- VBScript to send email without running Outlook
- Why is Node.js scalable?
- Migrating data between local and development server
- What is the usual process of saving changes made at the CMS level into source control?
- How should I be handling my theme version numbering?
- Follow author on muti-user WordPress site
- How do I deal with a compromised server?
- Something is burning in the server room; how can I quickly identify what it is?
- Finding out what user Apache is running as?
- Do systemd unit files have to be reloaded when modified?
- What is a glue record?
- How do I convert a .cer certificate to .pem?
- Run Oracle SQL script and exit from sqlplus.exe via command prompt
- Show full process name in top
- How do you do load testing and capacity planning for web sites?
- What is a good SSH server to use on Windows? [closed]
- In systemd, what’s the difference between After= and Requires=?
- Windows Server restart / shutdown history
- How do I set the global PATH environment variable on OS X?
- nmap find all alive hostnames and IPs in LAN
- Should CNAME Be Used For Subdomains?
- How do I create user accounts from the Terminal in Mac OS X 10.5?
- How to get a .pem file from ssh key pair?
- How to inspect remote SMTP server’s TLS certificate?
- Choosing between meaningful and meaningless hostnames [closed]
- logrotating files in a directories and its subdirectories
- Multiple TXT fields for same subdomain
- How to restart Nginx on Mac OS X?
- Do SPF Records For Primary Domain apply to subdomains?
- Why is the response on localhost so slow?
- apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName