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…
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!
Written by
Related posts
![](https://github.blog/wp-content/uploads/2024/03/Enterprise-LightMode-1-1.png?resize=400%2C212)
GitHub Availability Report: January 2025
In January, we experienced two incidents that resulted in degraded performance across GitHub services.
![GitHub Copilot agent mode](https://github.blog/wp-content/uploads/2025/02/Agent-Sunrise-1.png?resize=400%2C212)
GitHub Copilot: The agent awakens
Introducing agent mode for GitHub Copilot in VS Code, announcing the general availability of Copilot Edits, and providing a first look at our SWE agent.
![](https://github.blog/wp-content/uploads/2025/01/innovation_graph_1.png?resize=400%2C212)
That’s a wrap: GitHub Innovation Graph in 2024
Discover the latest trends and insights on public software development activity on GitHub with the release of Q2 & Q3 2024 data for the Innovation Graph.