Skip to content

Instantly share code, notes, and snippets.

@theHilikus
Last active April 17, 2024 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theHilikus/fc5822bd91a286127f5d to your computer and use it in GitHub Desktop.
Save theHilikus/fc5822bd91a286127f5d to your computer and use it in GitHub Desktop.
alias to create empty commits
commit() { branchName=$(git rev-parse --abbrev-ref HEAD); git commit --allow-empty -m "Branch name: $branchName" ;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment