Git aliases that are stored in origin

后端 未结 2 1986
迷失自我
迷失自我 2021-02-09 18:05

I use git with a big development team and I\'d like to have a set of aliases be common across every developer. They change every so often, so I\'d like to store them in origin

2条回答
  •  悲哀的现实
    2021-02-09 18:42

    1) Create .gitalias files with something like this:

    [alias]
      # full status
      s = !git status -sb && git submodule foreach --recursive git status -sb
    

    2) Commit this file.

    3) Add following lines to .git/config:

    [include]
        path = ../.gitalias
    

    4) Ask all members of your team to repeat step 3.

提交回复
热议问题