💻 Software
How to set to pull the same branch by default?
Fresh5 days ago
Mar 15, 20265574 viewsConfidence Score0%
0%
Problem
When I pull from the new added remotes, I have to specify the branch name explicitly: Though I'm working on the branch. It maybe useful to pull from a different branch from different remotes, but it never happened to me. In our team, we never pull a branch of different name to the current checked o…
Error Output
$ git pull remote1 ... Error: you didn't specify a branch name. $ git pull remote1 master
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to set to pull the same branch by default?
Low Risk
If you do not want to reset the “upstream configuration” of your local branch, you could use this: It will probably do unexpected things if your local HEAD is detached. You could package it up as a Git alias to make it easier to type (though you wou…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix