visualstudio online免费使用,支持git,项目私有,目前来说是个人项目管理的一个不错选择。下文是简单的上传文件到visualstudio online的步骤:
1、git clone https://xxx.visualstudio.com/DefaultCollection/_git/xxxProject
2、cd 进入xxxProject目录
3、将需要上传的文件放到xxxProject目录里。
4、在此目录下增加.gitignore文件,编写忽略名单,比如:
/bin/
/gen/
/project.properties
注:此步可不做。
5、git add -A //把我们要提交的所有文件的信息添加到索引库中。
6、git commit -m “提交信息”
7、git remote add origin https://xxx.visualstudio.com/DefaultCollection/_git/xxxProject //连接远程项目
如此句提示:fatal: remote origin already exists.则先执行: git remote rm origin,再执行上一句。
8、git push origin master //将本地项目更新到github项目上去