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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

github:已经提交并push后再次追加提交

發布時間:2025/3/21 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 github:已经提交并push后再次追加提交 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

快速鏈接:
.
👉👉👉 個人博客筆記導讀目錄(全部) 👈👈👈

(1)修改倒數第1次的commit

指令:$ git rebase -i HEAD~1

(2)修改pick為edit

// 這里修改代碼、以及git add

(3)$ git commit --amend

按i進入編輯模式,修改內容,退出編輯模式,輸入:wq保存并退出

(4)$ git rebase --continue

(5)強制push
$ git push --force github

例如:

test@test-21:~/workspace/optee/my_opteeos/optee_os$ git rebase -i HEAD~1 Stopped at 615c14d4... scripts : check the input already signed before signing a TA You can amend the commit now, withgit commit --amend Once you are satisfied with your changes, rungit rebase --continuetest@test-21:~/workspace/optee/my_opteeos/optee_os$ git add scripts/sign_encrypt.py test@test-21:~/workspace/optee/my_opteeos/optee_os$ git commit --amend [detached HEAD cd49d655] scripts : Check the input already signed before signing a TADate: Mon Jan 25 23:06:04 2021 +08001 file changed, 11 insertions(+)test@test-21:~/workspace/optee/my_opteeos/optee_os$ git push --force https://github.com/baronZhou/optee_os.git Username for 'https://github.com': baronZhou Password for 'https://baronZhou@github.com': Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 897 bytes | 149.00 KiB/s, done. Total 4 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3), completed with 3 local objects. To https://github.com/baronZhou/optee_os.git+ 615c14d4...cd49d655 master -> master (forced update)

總結

以上是生活随笔為你收集整理的github:已经提交并push后再次追加提交的全部內容,希望文章能夠幫你解決所遇到的問題。

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