Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow disabling of force push #855
Comments
|
You need to force push after a rebase? |
|
Nope. So lets say I make a commit on the branch develop, but someone pushed a commit to develop before me. When I push, lazy git would give the following error: 'Branch has diverged from remote'. So then you:
Now if you (out of habit) press |
|
Yeah fair enough. But some would say two people shouldn't be using the same branch; I won't but those people are everywhere! |
|
I generally agree with that but here are two situations that are pretty common:
|
|
This one wouldn't be too hard to do if somebody was looking for a good first issue! You'd need to add a new config option to |
|
@jesseduffield I'd really like to tackle this one! |
|
go for it @fsmiamoto, lemme know if you need anything! |
Topic
So sometimes when I am pushing to a branch and it has diverged from the remote, a little pop up shows up saying would you like to force push. Instinctively I press enter instead of escape which ends up force pushing
Your thoughts
I was hoping there would be an option to disable this specific behavior or just disable force pushing all throughout lazygit.
I feel like this makes you look incompetent at work (because it implies you don't know how to merge/rebase) when in reality I'm just lazy😂