illustration for Fix Common Git Mistakes
pro

Fix Common Git Mistakes

Instructor

Chris Achard

46m closed-captioning
·
20 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
441
people completed
Published 5 years ago
|
Updated 4 years ago

This workshop will start by breaking down the four states in which a file can exist, and we'll build up our mental model of git from there. Then, we'll look at how to move files between those states in different ways.

Once we've developed a new model for how git operates, we'll be able to purposefully get ourselves into some sticky situations, and then gracefully recover from them.

If you can handle git add/commit/push, but not much more - then this workshop is perfect for you.

You can finally get some proper git training, and will never have to worry about losing data or messing up the repo again!

What you'll learn:

  • Change commit messages
  • Add or remove files from a commit
  • How and when to stash changes
  • What a "detached HEAD" is, and how to fix it
  • Remove secrets from a codebase
  • How to rewrite history