[英]Making an empty commit+push without cloning the git repo first
有沒有辦法在不首先克隆 git 存儲庫的情況下將空提交推送到(遠程)git 存儲庫?
即能不能達到這樣的效果
git clone https://github.com/example-org/example-repo.git
cd example-repo
git commit -m "empty commit" --allow-empty
git push
沒有先在第一行克隆存儲庫?
理想情況下,我想用“純”git 來做到這一點,但如果沒有簡單的方法來獲得純 git,那么使用 github API 也可以。
背景:我需要空提交作為 Heroku 中自動部署機制的一部分,它會自動部署在 github 提交上。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.