Py学习  »  Git

git别名ssh add.gitconfig

Ant • 5 年前 • 792 次点击  

.gitconfig 我创建了这种类型的别名:

[alias]
    something = "!eval `ssh-agent -s` && ssh-add ~/.ssh/id_acub && git config --global user.email <email> && git config --global user.name <user.name>"

此时,跑步 git something 正确显示信息,但无法按预期工作。

如果我在控制台中键入一行:

eval `ssh-agent -s` && ssh-add ~/.ssh/id_acub && git config --global user.email <email> && git config --global user.name <user.name>

然后一切正常。

别名有什么问题?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/30771
 
792 次点击  
文章 [ 1 ]  |  最新文章 5 年前