• xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!


    git alias all in one

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

    what's git commit -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)
    
    

    refs



    ©xgqfrms 2012-2020

    www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


  • 相关阅读:
    10 个雷人的注释,就怕你不敢用!
    Java 14 之模式匹配,非常赞的一个新特性!
    poj 3661 Running(区间dp)
    LightOJ
    hdu 5540 Secrete Master Plan(水)
    hdu 5584 LCM Walk(数学推导公式,规律)
    hdu 5583 Kingdom of Black and White(模拟,技巧)
    hdu 5578 Friendship of Frog(multiset的应用)
    hdu 5586 Sum(dp+技巧)
    hdu 5585 Numbers
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/13794227.html
Copyright © 2020-2023  润新知