15
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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 で良い。

15
7
1

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
15
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?