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
posted @ 2019-12-14 17:16  麦克斯-侯  阅读(649)  评论(0编辑  收藏  举报
百纵科技