向仓库添加文件只要3步
1、添加文件,复制文件到testgit目录下
2、执行git add 文件名 命令
# git add Hello.txt
3、执行提交命令
# git commit -m "first commit"
运行结果
1
2
3
|
[master(根提交) fc56011] first commit
1
file
changed, 1 insertion(+)
create mode 100644 Hello.txt
|
4、推送,使用命令git push
1
|
git push
|