git how to see current branch code example
Example 1: git checkout new branch
// create and checkout new branch in one line
git checkout -b new_branch
Example 2: git check who created branch
git for-each-ref --format='%(color:cyan)%(authordate:format:%m/%d/%Y %I:%M %p) %(align:25,left)%(color:yellow)%(authorname)%(end) %(color:reset)%(refname:strip=3)' --sort=authordate refs/remotes