xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ git status
On branch master
nothing to commit, working tree clean
$ cat C/HelloWorld.c
aaaa
$ vim C/HelloWorld.c
bbbb
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: C/HelloWorld.c
no changes added to commit (use "git add" and/or "git commit -a")
$ git commit -m "y" C/HelloWorld.c
[master 0da952c] y
1 file changed, 1 insertion(+), 1 deletion(-)
Sign in to make a reply
牛爷爷34649
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ git status
On branch master
nothing to commit, working tree clean
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ cat C/HelloWorld.c
aaaa
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ vim C/HelloWorld.c
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ cat C/HelloWorld.c
aaaa
bbbb
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: C/HelloWorld.c
no changes added to commit (use "git add" and/or "git commit -a")
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ git commit -m "y" C/HelloWorld.c
[master 0da952c] y
1 file changed, 1 insertion(+), 1 deletion(-)
xk520@LAPTOP-7809DKAS MINGW64 /e/Git (master)
$ git status
On branch master
nothing to commit, working tree clean