How can I get 'git status' to always use short format?

后端 未结 4 2083
一个人的身影
一个人的身影 2021-01-31 08:09

I\'d like git status to always use the short format:

$ git status --short
 M file1
 M dir/file2
?? file_untracked3
?? dir/file_untracked4

4条回答
  •  天涯浪人
    2021-01-31 08:37

    Use a different alias. Instead of trying to alias 'status', do:

    git config --global alias.s 'status --short'
    

    Now "git s" gives you short output, and "git status" gives you long output.

提交回复
热议问题