YoVDO

How to Undo Mistakes With Git Using the Command Line

Offered By: freeCodeCamp

Tags

Git Courses Version Control Courses Command Line Courses

Course Description

Overview

Learn essential techniques for undoing mistakes and managing your Git repository effectively using the command line. This comprehensive video course covers a wide range of Git operations, including discarding local changes, restoring deleted files, fixing commits, reverting changes, resetting to old revisions, recovering deleted commits and branches, moving commits between branches, and performing interactive rebases. Master advanced Git features like the Reflog and learn how to safely rewrite history. Gain confidence in handling various Git scenarios and discover how to use Git as a powerful safety net for your projects. By the end of this course, you'll have a robust toolkit for managing and recovering from common Git mistakes, enhancing your version control skills and workflow efficiency.

Syllabus

) Introduction.
) Hosted by Tower.
) Git as your safety net.
) Discard all local changes in a file.
) Please be careful: discarding local changes cannot be undone!.
) Restoring deleted files.
) Discard chunks / lines in a file.
) Discarding all local changes.
) Fixing the last commit.
) What "rewriting history" means.
) Reverting a commit in the middle.
) Resetting to an old revision.
) Resetting a file to an old revision.
) The Reflog.
) Recovering deleted commits.
) Recovering deleted branches.
) Moving a commit to a new branch.
) Moving a commit to a different branch.
) Interactive Rebase: an overview of what you can do.
) Interactive Rebase: how it works in general.
) Editing old commit messages with Interactive Rebase.
) Deleting commits with Interactive Rebase.
) Squashing multiple commits into one with Interactive Rebase.
) Adding changes to an old commit with Interactive Rebase.
) Splitting/editing an old commit with Interactive Rebase.
) Reminder: don't rewrite commits that you have already shared!.
) First Aid Kit for Git: a set of short videos and a cheat sheet, free to download (www.bit.ly/git-first-aid-kit).


Taught by

freeCodeCamp.org

Related Courses

GitHub & Collaboration
Udacity
Fundamentals of Red Hat Enterprise Linux 9
Red Hat via edX
L'essentiel pour maîtriser Linux
University of Carthage via France Université Numerique
Linux for Developers
Linux Foundation via Coursera
Programming for Data Science with Python
Mode via Udacity