git push 指定commit
时间: 2023-10-14 15:04:42 浏览: 173
Learning_Push:学习git commit
使用`git push`命令可以推送暂存区的所有提交到远程仓库,默认情况下推送所有提交。但是,你也可以通过指定特定的commit来推送。可以使用以下命令格式来指定commit:`git push <remote_name> <commit_id>:<remote_branch_name>`。这将会将指定的commit推送到远程仓库的指定分支。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [【Git】Push 指定提交](https://blog.csdn.net/Michelle_Zhong/article/details/124547494)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [Git---本地仓库有多条commit,如何push某一条commit到远端](https://blog.csdn.net/COCOLI_BK/article/details/128254877)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [git push某个或某些特定提交](https://blog.csdn.net/u010730126/article/details/100743019)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文