首页 > 其他 > 详细

Git基本操作

时间:2018-06-02 22:02:28      阅读:239      评论:0      收藏:0      [点我收藏+]

1.初始化

git init

2.提交文件

git add filename.xxx

3.commit

git commit -m "why commit this file"

4.push

git push -u origin master

以上完成了将文件push到远程仓库中。

5.下载远程库

git clone https://github.com/***/****.git

6.查看本地仓库与远程库区别

git status

7.删除远程库的文件(本地不存在,通过上个命令知道)

git rm filenaem.xxx 
git commit -m "commit context"
git push -u origin master

 

Git基本操作

原文:https://www.cnblogs.com/ys99/p/9126912.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!