shadow-fei

1.上传两步走

  编写一个readme.txt文件,内容如下:

Git is a version control system.
Git is free software.

  第一步,添加,命令git add,添加到仓库

$ git add readme.txt

  说明:Git执行成功是没有执行结果提示的.

  第二步,提交,git commit,提交到仓库

$ git commit -m "此处描述此次操作的内容说明"

[master (root-commit) eaadf4e] wrote a readme file
1 file changed,2 insertions(+)
create mode 10064 readme.txt

  说明:1 file changed,2 insertions(+),这是执行结果,1个文件改动,2行插入

2.多个文件上传

  第一步,可以多个文件一起上传

$ git add file1.txt
$ git add file2.txt      file3.txt
#git commit -m "add 3 files"

  说明插入3个文件

 

分类:

技术点:

相关文章:

  • 2021-07-02
  • 2021-08-19
  • 2021-06-24
  • 2022-12-23
  • 2021-05-18
  • 2021-12-10
猜你喜欢
  • 2022-01-20
  • 2021-12-10
  • 2021-04-19
  • 2021-11-07
  • 2022-01-15
  • 2022-02-03
  • 2021-12-12
相关资源
相似解决方案