Skip to content

Instantly share code, notes, and snippets.

@rot26
Created February 17, 2020 23:46
Show Gist options
  • Save rot26/ec3518e3e46eafda72deab71930c40a4 to your computer and use it in GitHub Desktop.
Save rot26/ec3518e3e46eafda72deab71930c40a4 to your computer and use it in GitHub Desktop.
[git-default-branch] Determine the default branch ref of the remote #git
git symbolic-ref refs/remotes/origin/HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment