Hacker News new | ask | show | jobs
by realbarack 3633 days ago
Unless I'm missing something, there's a race condition between "check if there are new commits to pull before force pushing" and "new commits come in". This workflow might work for a very small team but for a larger team it is bound to cause problems.
1 comments

He may have editted his comment, but it doesnt mention `force`. As written, there is no race condition.
Right. As logn as you døn't force-push, then you can rebase until the problems are all gone. Although, this 3-step solution works best with proper team communication and planning.
You've probably seen it in other comments, but if not, `--force-with-lease`