Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.12 KB

recipe.md

File metadata and controls

58 lines (40 loc) · 1.12 KB

🧑‍🍳 Recipe

If you prefer a single command to push changes to your git repository, follow these steps:

🍳 Makefile

  1. Create a Makefile:
$ touch Makefile
  1. Add the following operations to the Makefile:
push:
  @git add -A
  @curl -s http://commit.jaw.dev/ | sh
  @git push --no-verify
  1. After making changes in your git project, run this single command to push them:
$ make push

Git

  1. Open up .gitconfig
$ cd ~
$ vim .gitconfig
  1. Add the following alias to .gitconfig
[alias]
	undo = reset --soft HEAD^             # Undo the last commit, keeping changes staged
	push = push --no-verify               # Push changes without verification
	aicommit = "!f() { curl -s https://commit.jaw.dev/ | sh; }; f"
  1. After making changes in your git project, run this single command to push them:
$ git add -A && git aicommit && git push
  1. Or you can skip message selection with a --no-verify flag
$ git add -A && curl -s https://commit.jaw.dev/ | sh -s -- --no-verify && git push --no-verify

💋🎤👋 BOOM!