github-提交仓库

时间:2023-03-09 03:02:52
github-提交仓库

git提交仓库主要分3快

1.用命令git add告诉Git,把文件添加到本地仓库(可以用.代替提交所有)

$ git add readme.txt

2.用命令git commit告诉Git,把文件提交到仓库:

$ git commit -m "wrote a readme file"
[master (root-commit) cb926e7] wrote a readme file
1 file changed, 2 insertions(+)
create mode 100644 readme.txt

3.用push提交到远程仓库

$ git push