git 相关操作

来源:互联网 发布:金融网络诈骗类型 编辑:程序博客网 时间:2024/06/05 09:17

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

填写用户名

填写密码






0 0
原创粉丝点击