Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-magic: add page #10889

Merged
merged 9 commits into from
Oct 10, 2023
Merged
29 changes: 29 additions & 0 deletions pages/common/git-magic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# git magic

> Automate add, commit, and push routines.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-magic>.

- Commit changes with a generated message:

`git magic`

- [a]dd untracked files and commit changes with a generated message:

`git magic -a`

- Commit changes with a custom [m]essage:

`git magic -m "{{custom_commit_message}}"`

- [e]dit the commit [m]essage before committing:

`git magic -em "{{custom_commit_message}}"`

- Commit changes and [p]ush to remote:

`git magic -p`

- Commit changes with a [f]orce [p]ush to remote:

`git magic -fp`
Loading