Lazygit

  1. Press P (uppercase) to push up to remote.
  2. If remote has changed, you will be prompted to force push.
  1. You probably don’t want to do that, so press esc to cancel.
  2. You probably want to pull down from remote first, so press p (lowercase) to pull down from remote.
  3. Now you can try pushing again.

Tip

Mnemonic:

  • Lowercase p: pull down from remote.
  • Uppercase P: Push up to remote.

Basic Terminal

git push