Exercise

What happens if I try to pull when I have unsaved changes?

Just as Git stops you from switching branches when you have unsaved work, it also stops you from pulling in changes from a remote repository when doing so might overwrite things you have done locally. The fix is simple: either commit your local changes or revert them, and then try to pull again.

Instructions 1/3

undefined XP
  • 1

    You are in the dental repository, which was cloned from a remote called origin. Use git pull to bring in changes from that repository.

  • 2

    Discard the changes in your repository.

  • 3

    Re-try the git pull.