Force Push vs Force Push With Lease
A thing I learned today:
--force-with-lease vs --force: The safer option - it refuses to push if someone else has pushed to the remote since your last fetch, preventing accidental overwrites of others' work.
Published on 27 Jan 2026
all tags
100daysofcode activerecord ai android annoyances api apt arch array artix atom az3w backend bash blog browser bug callback career ci-cd claude cli cloud code coding config configuration cp crud cryptography css csv database db demo design development devops django docker email erp feelsgood filter fugitive gif gist git github gmail gnome gnome pomodoro grep hebrew http ide isbn-fetcher iso javascript job search js kanban kindle koans learning linkedin linux llm logger manjaro map markdown microservices mobi mtp neovim nodejs nvchad packages panda pastbin patch portfolio post postgres pytest python rails reduce refactoring reflections rest routes rspec ruby salesforce script scripting security sed shell sql string_replacement study tasks tdd terminal testing tmux ttd version_control vim vim sort walkthrough wayland webdev workflow xorg zsh