Video Series Surviving with Git

Discarding All Local Changes in a File

1 minepisode 1 of 17

In this episode, we will see how to discard local changes in a file that you haven’t committed yet.

Watch

Restoring a Deleted File

1 minepisode 2 of 17

In this episode, we will explore how to restore a deleted file.

Watch

Discarding Chunks / Lines in a File

1 minepisode 3 of 17

In this episode, we will learn how to undo only certain changes in a file - down to the level of chunks and even individual lines of code!

Watch

Discarding All Local Changes

1 minepisode 4 of 17

In this episode, we will learn how to undo all of the local changes you made since you last committed.

Watch

Fixing the Last Commit

2 minepisode 5 of 17

In this episode, we will learn how to correct our very last commit - e.g. because we've mistyped the commit message or forgot to add a change.

Watch

Reverting a Commit in the Middle

1 minepisode 6 of 17

In this episode, we're going to use the "git revert" command. Revert is perfect for cases where you want to undo the effects of an old commit.

Watch

Resetting to an Old Revision

2 minepisode 7 of 17

In this episode, we're going to restore our complete project to an older version.

Watch

Resetting a File to an Old Revision

1 minepisode 8 of 17

In this episode, we're going to restore a single, specific file to an older version.

Watch

Recovering Deleted Commits

2 minepisode 9 of 17

In this episode, we're going to recover some commits that we've lost through a "git reset".

Watch

Recovering a Deleted Branch

2 minepisode 10 of 17

In this episode, we'll try to recover a deleted branch.

Watch

Moving a Commit to a New Branch

2 minepisode 11 of 17

In this episode, we're going to move a commit to a new branch.

Watch

Moving a Commit to a Different Branch

2 minepisode 12 of 17

In this episode, we're going to move a commit from one branch to another, existing branch.

Watch

Editing Old Commit Messages

1 minepisode 13 of 17

In this episode, we will edit the commit message of an old commit.

Watch

Deleting Old Commits

1 minepisode 14 of 17

In this episode, we will delete a revision from our commit history.

Watch

Squashing Multiple Commits into One

1 minepisode 15 of 17

In this episode, we will combine two existing commits into a single one.

Watch

Adding a Change to an Old Commit

2 minepisode 16 of 17

In this episode, we will fix an old commit by enhancing it with a new, separate commit.

Watch

Splitting / Editing an Old Commit

2 minepisode 17 of 17

In this episode, we will edit an old commit. More precisely, we will split a specific commit into two separate commits.

Watch