git的remote server的操作

git的remote server的操作

 

 

git显示当前对应远程的URL

 

git remote show origin

 

输出结果如下,

Password:

* remote origin

  Fetch URL: xxx@xxx.xxx.xxx.xxx:/git-repo/myproduct/project1.git

  Push  URL: xxx@xxx.xxx.xxx.xxx:/git-repo/myproduct/project1.git

  HEAD branch: master

  Remote branch:

    master tracked

  Local branch configured for 'git pull':

    master merges with remote master

  Local ref configured for 'git push':

    master pushes to master (up to date)

 

改变远程URL

git remote set-url origin git@git.test.com:my-project.git

 

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *