1GIT-MAGIC(1)                      Git Extras                      GIT-MAGIC(1)
2
3
4

NAME

6       git-magic - Automate add/commit/push routines
7

SYNOPSIS

9       git-magic [-a] [-m msg] [-e] [-p] [-f]
10

DESCRIPTION

12       Produces summary of changes for commit message from git status --porce‐
13       lain output. Commits staged changes with the generated  commit  message
14       and  opens  editor  to modify generated commit message optionally. Also
15       staging and pushing can be automated optinally.
16

OPTIONS

18       -a
19
20       Adds everything including untracked files.
21
22       -m msg
23
24       Use the given msg as the commit message. If  multiple  -m  options  are
25       given,  their values are concatenated as separate paragraphs. Passed to
26       git commit command. The generated is appended to user-given messages.
27
28       -e
29
30       This option lets you further edit the generated message. Passed to  git
31       commit command.
32
33       -p
34
35       Runs git push after commit.
36
37       -f
38
39       Adds -f option to git push command.
40
41       -h
42
43       Prints synopsis.
44

EXAMPLES

46       This example stages all changes then commits with automatic commit mes‐
47       sage.
48
49
50
51           $ git magic -a
52           [feature/magic dc2a11e] A  man/git-magic.md
53            1 file changed, 37 insertions(+)
54            create mode 100644 man/git-auto.md
55           # git log
56           Author: overengineer <54alpersaid@gmail.com>
57           Date:   Thu Sep 30 20:14:22 2021 +0300
58
59               M  man/git-magic.md
60
61
62
63       -m option PREPENDS generated message.
64
65
66
67           $ git magic -am "Added documentation for git magic"
68           [feature/magic dc2a11e] Added documentation for git magic
69            1 file changed, 42 insertions(+), 0 deletions(-)
70            create mode 100644 A man/git-auto.md
71           $ git log
72           Author: overengineer <54alpersaid@gmail.com>
73           Date:   Thu Sep 30 20:14:22 2021 +0300
74
75               Added documentation for git magic
76
77               M  man/git-magic.md
78
79
80

AUTHOR

82       Written by Alper S. Soylu 54alpersaid@gmail.com
83

REPORTING BUGS

85       <https://github.com/tj/git-extras/issues>
86

SEE ALSO

88       <https://github.com/tj/git-extras>
89
90
91
92                                 October 2021                     GIT-MAGIC(1)
Impressum