Skip to content

Instantly share code, notes, and snippets.

@shadowdreamer
Forked from kuku/gitfetch.sh
Created January 3, 2025 08:13
Show Gist options
  • Save shadowdreamer/f4f3aba0e50cdfa025ffa11b53f47847 to your computer and use it in GitHub Desktop.
Save shadowdreamer/f4f3aba0e50cdfa025ffa11b53f47847 to your computer and use it in GitHub Desktop.
当本地看不到远程git 分支的时候,可以这样来获得。 http://stackoverflow.com/questions/12578665/i-cant-see-my-remote-branch
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment