Skip to content

Instantly share code, notes, and snippets.

@erplsf
Created November 22, 2018 15:57
Show Gist options
  • Save erplsf/9080fbba94f0a8dcfe76b9364520eb96 to your computer and use it in GitHub Desktop.
Save erplsf/9080fbba94f0a8dcfe76b9364520eb96 to your computer and use it in GitHub Desktop.
checkout with date
function _git_special_checkout() {
git checkout -b "$(date +%Y%m%d)_$1"
}
alias gcb='_git_special_checkout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment