Git Alias Problem

前端 未结 5 1178
难免孤独
难免孤独 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条回答
  •  滥情空心
    2021-02-01 22:51

    I had the same problem too, and this was a badly formatted .bash_profile line.

    When I installed WP_CLI, it added the following line to my .bash_profile

    export PATH=/root/.wp-cli/bin:$PATH
    

    I had to make a slight change for it. I'm using CentOs for that matter.

    export PATH=$PATH:/root/.wp-cli/bin
    

    This fixed my problem.

提交回复
热议问题