Git 添加文件

向仓库添加文件只要3步

1、添加文件,复制文件到testgit目录下

2、执行git add 文件名 命令

# git add Hello.txt

3、执行提交命令

# git commit -m "first commit"

运行结果

1
2
3
[master(根提交) fc56011] first commit
  file changed, 1 insertion(+)
  create mode 100644 Hello.txt

4、推送,使用命令git push

1
git push

猜你喜欢

转载自www.cnblogs.com/max-hou/p/12040253.html