This little dance is needed to merge in the remote origin/master to a fresh local (one created without cloning the remote, such as by a tool like pass). I don't know if there is a better way?
You need to do this when
- you have another application which can use git for storing data, and you need to fill it with history from a common remote, but the application doesn't support
git clone, only
git inittype operations
- you have a local repository with local changes that you want to keep, but still merge in the origin (although you could go the other way, I think?)
Use commands like these to merge in a remote to your local master, as the new origin: