使用git@osc管理现有项目

首先安装git和powershell集成git工具

参考 http://www.cnblogs.com/kreo/p/4685988.html

 

打开windows powershell,进入项目目录,然后初始化git项目

#初始化git
git init
#指定远程仓库路径
git remote add -m master origin [https://git.......]
#下载远程仓库代码
git pull origin master
#首次提交到远程仓库
git add .
git commit -m "First Commit"
#第一次用-u建立关联 git push -u origin master

 

posted on 2015-09-22 16:36  太清  阅读(267)  评论(0编辑  收藏  举报