Skip to content

Git Tricks

Know how to add changes to a previous commit? Commit only part of a changed file? Change the message of a commit 30 commits ago? If not, check out Ryan…

Author

Know how to add changes to a previous commit? Commit only part of a changed file? Change the message of a commit 30 commits ago?

If not, check out Ryan Tomayko’s The Thing About Git. Great post, lots of advanced Git usage in there.

Update: Hey, got a trick or two of your own? Add them to the guide!

Explore more from GitHub

Company

Company

The latest on GitHub, from GitHub.
The ReadME Project

The ReadME Project

Stories and voices from the developer community.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.