Git Alias Problem

前端 未结 5 1179
难免孤独
难免孤独 2021-02-01 22:30

I was trying to set up some git aliases by adding these lines to my ~/.gitconfig file:

[alias]
  st = status
  ci = commit
  br = branch
         


        
5条回答
  •  猫巷女王i
    2021-02-01 22:42

    Git also has a built in alias command.

    Example alias commands:

    git config --global alias.co checkout
    git config --global alias.ci commit
    git config --global alias.st status
    git config --global alias.br branch
    git config --global alias.lola 'log --graph --decorate --pretty=oneline --abbrev-commit --all'
    

提交回复
热议问题