码迷,mamicode.com
首页 > 其他好文 > 详细

git 相关操作

时间:2015-05-20 20:40:57      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

1. 提交新添加的代码:

查看状态:

git status

添加 代码到工作区间:

git add .

提交

git commit -m "add"

推送到 gitcafe:

git push origin master

填写用户名

填写密码

最后再查看一下状态。

2. 本地一些文件(文件夹删除了),同步到gitcafe:

git rm 文件夹名称 -r -f
git commit -m "delete 文件夹"
git push origin master

填写用户名

填写密码






git 相关操作

标签:

原文地址:http://blog.csdn.net/u010127250/article/details/45874217

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!