git的基本操作

1、初始化

  git init 在当前目录文件夹下

2、复制github项目:

  git clone  [地址]

3、添加文件;

  git add file1 file2 

4、文件删除:

  git rm file1 file2

5、文件移动(修改名称与linux相似):

  git mv file1 file2

6、提交

  git commit -am 最为直接不用提交到缓存区

7、查看git状态

  git status 

posted @ 2020-03-12 21:32  MRWWH  阅读(202)  评论(0)    收藏  举报