illustration for Fix Common Git Mistakes

Fix Common Git Mistakes

Instructor

Chris Achard
46m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
441
people completed
Bookmark
Download
RSS

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!

Credits

Aleksander Ageev (illustration)

Listen to Chris Achard tell you about this course:

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

Learner Reviews

  • Roberto Mirabella
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Very very well done. Well explained, short and to the point. Thanks Chris

  • Abhinav Gajurel
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Enjoyed learning it.

    Thanks Chris

  • Juan Gonzalez
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Best course on practical Git for everyday uses and also covers some cases that are not that common but is very useful to be aware of them to not have any 'git panic' if things go wrong. This really opened my mind to the real power of what Git can do. 🤩

  • Chris McDonald
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Lots of great tips for fixing common git mistakes.

  • mattdrabek
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I like how you explained a fix, and followed it up with a simple, but appropriate example. I also like how they're broken into sections, so if I forget how to fix something, then I can reference this video, and find where the fix would be explained. Thanks!

  • Saumyajit
    4 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Very precise and just what we need as a ready reference while in need. Please add, if possible, some examples of rebase as opposed to merge and what method should be followed as best practice.

Course Content

46m • 20 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    Introduction to Cloudflare Workers

    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout

    Create an eCommerce Store with Next.js and Stripe Checkout

    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use

    Practical Git for Everyday Professional Use

    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.