Introduction: Bare Repositories

Overview of the upcoming chapter.

In the previous chapter, you stumbled upon pushing a change to another repository, and I mentioned that you needed a bare repository.

In this chapter, you will cover:

  • What bare repositories are
  • Force-pushing with git push -f
  • The dangers of squashing and force-pushing with multiple users

By the end, you will have a better understanding of how to set up a central repository that users can pull and push to and understand how and why you can get into “Git merge hell.” Your understanding will help you figure out what to do when it happens.

Get hands-on with 1400+ tech skills courses.