Zum Inhalt

Git Handbook

Push until specific commit

This how you can push until a specific commit (hash):

COMMIT=1f72f3ba764e4ece0cd556779781b414c2efacb6
echo "Summary of the commits diff:"
git --no-pager log origin/main..$COMMIT --oneline
git push origin $COMMIT:main

Backlinks

đź”— Anleitung
đź”— Git

📝 Edit on GitHub · 🔷 Open in Obsidian