首页 > 其他 > 详细

Git 添加文件

时间:2019-12-14 17:31:07      阅读:72      评论:0      收藏:0      [点我收藏+]

向仓库添加文件只要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

Git 添加文件

原文:https://www.cnblogs.com/max-hou/p/12040253.html

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