Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@culage

絵で分かる git push --force-with-lease

git push --force-with-lease の仕組み

git push --forceの代わりに安全なgit push --force-with-leaseを使おうとよく言われるが、内容をいまひとつ理解していなかったので絵に描いた。

force_with_lease1.png

git push --force-with-lease は絶対安全ではない

ただし以下のように他人が追加のコミットをした状態でも、git push --force-with-leaseが成功して、他人の追加コミットを消してしまうことがありえる。
git push --force-with-lease は絶対安全ではない
force_with_lease2.png

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What is going on with this article?