美文网首页
git 常用命令

git 常用命令

作者: LiorPeng | 来源:发表于2017-02-15 18:06 被阅读0次

git remote -v 查看当前git库的远程地址

更改git服务器地址:

在项目的根目录有个.git 隐藏文件夹(mac 可以用ls -a 看到)

cd .git

vim config

i 进入编辑模式

找到下面这行

url = xxx_git@127.0.0.1:/home/data/git/onlys/****.git

编辑url内容为需要替换的地址然后保存,对应的命令:

按Esc,输入:wq 

相关文章

网友评论

      本文标题:git 常用命令

      本文链接:https://www.haomeiwen.com/subject/inpqwttx.html