日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Git的四种状态

發布時間:2024/9/19 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Git的四种状态 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

修改之后的:Changes not staged for commit更改沒有被進階保存的? 紅色字體的還沒add

? ? ? ? ? ? ? ? ? ? ? 與add之后的區別就是一個紅色一個l綠色的

$ git status On branch master Your branch is ahead of 'origin/master' by 1 commit.(use "git push" to publish your local commits)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: "PHP/PHP\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/24.strtr.php"

add之后的:Changes to be committed更改需要被提交? 藍色字體是add之后的

$ git add . $ git status On branch master Your branch is ahead of 'origin/master' by 1 commit.(use "git push" to publish your local commits)Changes to be committed:(use "git restore --staged <file>..." to unstage)modified: "PHP/PHP\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/24.strtr.php"

commit之后的:備注分支與數量[master 3b9d7b1] 修改??1 file changed, 1 insertion(+)

$ git commit -m "修改" [master 3b9d7b1] 修改1 file changed, 1 insertion(+)

push之后的:計算數量 進行推送

$ git push origin master Enumerating objects: 13, done. Counting objects: 100% (13/13), done. Delta compression using up to 8 threads Compressing objects: 100% (10/10), done. Writing objects: 100% (10/10), 1.05 KiB | 1.05 MiB/s, done. Total 10 (delta 7), reused 0 (delta 0) remote: Resolving deltas: 100% (7/7), completed with 3 local objects. To https://github.com/7117/CodePractice24e64a7..3b9d7b1 master -> master

?

總結

以上是生活随笔為你收集整理的Git的四种状态的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。