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

后端 未结 4 2122
一个人的身影
一个人的身影 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:57

    You may create an alias.

    But I'd create bash script:

    #!/bin/bash
    git status --short
    

    save this script in ~/bin/gits (or /usr/bin/gits and chmod 555), so typing gits gives what you want.

提交回复
热议问题