使用git从服务器下载已存在的项目文件

在项目所在路径下输入: git remote -v 获得项目在服务器下的路径如下:

origin ssh://git@ygl-redis:300/home/git/perfectunits-iphone (fetch)

origin ssh://git@ygl-redis:300/home/git/perfectunits-iphone (push)

在需要下载项目的路径下输入: git clone ssh://git@ygl-redis:300/home/git/perfectunits-iphone 下载项目

以后需要更新时,直接 git pull 就OK。

原文地址:https://www.cnblogs.com/huanglong/p/3481495.html