Skip to content

Instantly share code, notes, and snippets.

@codeeshop-oc
Last active November 4, 2023 07:28
Show Gist options
  • Save codeeshop-oc/5d4ca657bb620cba448c7fade7d0e70c to your computer and use it in GitHub Desktop.
Save codeeshop-oc/5d4ca657bb620cba448c7fade7d0e70c to your computer and use it in GitHub Desktop.
default_branch=$(git rev-parse --abbrev-ref HEAD)
read -p "Enter your [Default - $default_branch]: " name
name=${name:-$default_branch}
git checkout -b $name
git add . && \
# git reset -- ".env"
git reset -- ".php-cs-fixer.cache"
read -p "Commit description: " desc
git commit -m "$desc" --no-verify && \
git push -u origin $name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment