Skip to content

Instantly share code, notes, and snippets.

@okabe-yuya
Created May 13, 2021 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okabe-yuya/a5aace6cee1d088b47f88e02732d72db to your computer and use it in GitHub Desktop.
Save okabe-yuya/a5aace6cee1d088b47f88e02732d72db to your computer and use it in GitHub Desktop.
get current branch name
echo $(git branch | grep "*" | sed -e "s/\* //")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment