Lazygit
- Press
P(uppercase) to push up to remote. - If remote has changed, you will be prompted to force push.
- Add#screenshot of force push prompt
- You probably don’t want to do that, so press
escto cancel. - You probably want to pull down from remote first, so press
p(lowercase) to pull down from remote. - Now you can try pushing again.
Tip
Mnemonic:
- Lowercase
p: pull down from remote.- Uppercase
P: Push up to remote.
Basic Terminal
git push