xgqfrms / git

git all in one
https://git.xgqfrms.xyz
MIT License
2 stars 1 forks source link

git alias all in one #28

Open xgqfrms opened 3 years ago

xgqfrms commented 3 years ago

git alias all in one

git -a -m

workspace:工作区 staging area:暂存区/缓存区 local repository:或本地仓库 remote repository:远程仓库

https://www.runoob.com/git/git-basic-operations.html

image

https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

https://stackoverflow.com/questions/2553786/how-do-i-alias-commands-in-git

https://githowto.com/aliases

https://www.atlassian.com/git/tutorials/git-alias

xgqfrms commented 3 years ago

what's git -a -m meanings ?

git commit -a -m

-a === --all

-m === --message

$ git commit -h 
usage: git commit [<options>] [--] <pathspec>...

    -q, --quiet           suppress summary after successful commit
    -v, --verbose         show diff in commit message template

Commit message options
    -F, --file <file>     read message from file
    --author <author>     override author for commit
    --date <date>         override date for commit
    -m, --message <message>
                          commit message
    -c, --reedit-message <commit>
                          reuse and edit message from specified commit
    -C, --reuse-message <commit>
                          reuse message from specified commit
    --fixup <commit>      use autosquash formatted message to fixup specified commit
    --squash <commit>     use autosquash formatted message to squash specified commit
    --reset-author        the commit is authored by me now (used with -C/-c/--amend)
    -s, --signoff         add Signed-off-by:
    -t, --template <file>
                          use specified template file
    -e, --edit            force edit of commit
    --cleanup <mode>      how to strip spaces and #comments from message
    --status              include status in commit message template
    -S, --gpg-sign[=<key-id>]
                          GPG sign commit

Commit contents options
    -a, --all             commit all changed files
    -i, --include         add specified files to index for commit
    --interactive         interactively add files
    -p, --patch           interactively add changes
    -o, --only            commit only specified files
    -n, --no-verify       bypass pre-commit and commit-msg hooks
    --dry-run             show what would be committed
    --short               show status concisely
    --branch              show branch information
    --ahead-behind        compute full ahead/behind values
    --porcelain           machine-readable output
    --long                show status in long format (default)
    -z, --null            terminate entries with NUL
    --amend               amend previous commit
    --no-post-rewrite     bypass post-rewrite hook
    -u, --untracked-files[=<mode>]
                          show untracked files, optional modes: all, normal, no. (Default: all)
xgqfrms commented 3 years ago
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
xgqfrms commented 3 years ago

https://github.com/xgqfrms/git/labels/git%20alias%20all%20in%20one