当前位置:   article > 正文

Git的四种状态_git 提交 writing objects: 79% (719/907), 756.70 mib

git 提交 writing objects: 79% (719/907), 756.70 mib | 1.05 mib/s

修改之后的:Changes not staged for commit更改没有被进阶保存的  红色字体的还没add

                      与add之后的区别就是一个红色一个l绿色的

  1. $ git status
  2. On branch master
  3. Your branch is ahead of 'origin/master' by 1 commit.
  4. (use "git push" to publish your local commits)
  5. Changes not staged for commit:
  6. (use "git add <file>..." to update what will be committed)
  7. (use "git restore <file>..." to discard changes in working directory)
  8. 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之后的

  1. $ git add .
  2. $ git status
  3. On branch master
  4. Your branch is ahead of 'origin/master' by 1 commit.
  5. (use "git push" to publish your local commits)
  6. Changes to be committed:
  7. (use "git restore --staged <file>..." to unstage)
  8. 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(+)

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

push之后的:计算数量 进行推送

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

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/537687?site
推荐阅读
相关标签
  

闽ICP备14008679号