If you prefer a single command to push changes to your git
repository, follow these steps:
- Create a
Makefile
:
$ touch Makefile
- Add the following operations to the
Makefile
:
push:
@git add -A
@curl -s http://commit.jaw.dev/ | sh
@git push --no-verify
- After making changes in your
git
project, run this single command to push them:
$ make push
- Open up
.gitconfig
$ cd ~
$ vim .gitconfig
- 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"
- After making changes in your
git
project, run this single command to push them:
$ git add -A && git aicommit && git push
- 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!