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
时间: 2024-10-07 00:06:09