如何将文件提交到本地git仓库
1.先在仓库创建一个文件Demo.txt
2.使用命令
git add
git commit -m
Apple@DESKTOP-ECLNIU2 MINGW64 /d/GitRepository (master)
$ git add Demo.txt
Apple@DESKTOP-ECLNIU2 MINGW64 /d/GitRepository (master)
$ git commit -m "这是测试提交一个文件Demo.txt" Demo.txt
[master (root-commit) bece153] 这是测试提交一个文件Demo.txt
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 Demo.txt
Apple@DESKTOP-ECLNIU2 MINGW64 /d/GitRepository (master)
$