LoginSignup
7

More than 5 years have passed since last update.

Sourcetreeでforce pushする(git)

Posted at

Mac版限定かもしれない

2018年4月6日時点

手順

設定を変更

デフォルトではforce pushできないので設定を変更する必要がある。

  1. Preferencesで設定画面を表示
  2. Advancedタブに切り替え
  3. Allow force pushにチェックを入れる

preferences.png
allow_force_push_check.png

force push

pushするときに Force push を選べるようになっているのでチェックを入れてOKを押す。
force_push.png

備考

最初に書いてあるとおりMac版限定可もしれない。
コマンドでgitが使えるなら git push -f で良い。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7