Git aliases that are stored in origin

后端 未结 2 1991
迷失自我
迷失自我 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:55

    You can versionning in your gitosis a default ~/.gitconfig with all of you alias and share configuration.

    You can't modify you .git/config by project

    You can too made some script to launch some git command like :

    
    git config alias.st status
    git config alias.ci commit
    

    Each person to launch this script had this twice alias in local git config

提交回复
热议问题