Results for “Git”
Small, practical examples. Search by task or narrow things down below.
Pull without creating a merge commit
Update a branch only when its upstream can be fast-forwarded.
pull✓ Tested
Read a file from a commit
Inspect committed content without changing your working copy.
show✓ Tested
Read recent commit messages
View a compact history in newest-first order.
log✓ Tested
See changed files
Show a concise working-tree status.
status✓ Tested
Sort version-like labels naturally
Linux Commands: Use GNU version sort to compare embedded digit runs numerically.
Linux Commands✓ Tested
Stage one file
Add one changed file to the next commit.
add✓ Tested
Temporarily store tracked-file edits
Restore a clean working tree and then reapply your saved changes.
stash✓ Tested
Undo a commit with a new commit
Reverse a change while preserving shared history.
revert✓ Tested
Unstage a file without losing edits
Return a staged change to the working tree.
restore✓ Tested
Use a fallback for a missing hashtable entry
PowerShell: Test the key explicitly so legitimate false or zero values are preserved.
PowerShell✓ Tested
Validate a complete numeric serial command
Arduino / C: Check for digits, an end pointer, and an application-specific range.
Arduino / C✓ Tested