heroku git:clone -a <Herokuアプリ名> tmp
cd tmp
git remote add origin <GitHubリポジトリURL>
git checkout -b develop
git reset --hard heroku/master
git push origin develop --force
Heroku GitのmasterブランチをGitHubのdevelopブランチに強制上書き
Last updated at Posted at 2025-05-09
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme