Rewriting History in Git

Change your Git history

About the screencast

There may come a time while you are working with Git that you realize that you need to modify an earlier commit. Luckily, this is possible. You can alter the commit message, or even merge multiple commits together or “squash” them, rewriting a portion of your Git history as one single commit. Learning how to make these changes can help with clarity and brevity when you are commiting to repos after your local changes, especially on a larger or open source projects where multiple commits dealing with one issue may be unwelcome.

Comments

Have your say! or become a member now to take part in the discussion

Loading...