Skip to Main Content
Pragmatic Guide to Git
book

Pragmatic Guide to Git

by Travis Swicegood
November 2010
Beginner content levelBeginner
160 pages
2h 50m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Git
44 Initializing Bare Repositories

Most Git repositories that you work with have both the repository metadata (the files located in the .git/ directory) and a working tree (the files that you interact with). Repositories that are meant to pushed to and pulled from, however, are generally created as bare repositories—repositories that don’t have a working tree.

You use a bare repository to push your changes to. You generally need only one, but you can have as many as your situation might require. For example, you might need to create two, each one on different servers, so a different set of people can access it. You need to make sure to remember to push to both repositories, though.

Using these repositories helps you separate the act ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pragmatic Version Control Using Git

Pragmatic Version Control Using Git

Travis Swicegood
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git for Programmers

Git for Programmers

Jesse Liberty

Publisher Resources

ISBN: 9781680500028Errata