Posts tagged “Version Control”
5 posts Subscribe by RSS
5 posts
git push --force-with-lease can still overwrite a teammate's commit: background fetch and --force-if-includes
What --force-with-lease compares when you force-push after a rebase, why a background fetch defeats it, and how --force-if-includes (Git 2.30) or an explicit expected value fixes that.
Getting commits back after git reset --hard with reflog
The reflog records where branches and HEAD pointed in your local repo. Find a lost commit, restore it as a branch, and learn the default 90/30-day expiry and when recovery fails.
Finding the commit that broke a test with git bisect run: exit codes 0, 125 and 127
How git bisect binary-searches for the first bad commit, and how git bisect run reads exit codes: 0 is good, 1–124 and 126–127 are bad, 125 skips, anything else aborts. From Git's docs.
Two dots or three in Git: what A..B and A...B mean in log and diff
Which commits git log selects for A..B and A...B, which two points git diff compares for each, and which one pull request diffs use, from Git's own docs and a reproduced example.
Git line endings: .gitattributes text and eol vs core.autocrlf
What to check when git diff shows ^M, based on Git's own documentation: what core.autocrlf and the text and eol attributes each decide, and how to fix files already committed with CRLF.
No posts match. Try another word.