Though Git is distributed and every clone essentially is a backup, there are some tricks that can be useful when backing up Git repositories. A normal Git repository has a working copy of the files it tracks and the full history of the repository in the .git
folder of that repository. The repositories on the server, the one you push to and pull from, will usually be bare
repositories. A bare
repository is a repository without a working copy. Roughly, it is just the .git
folder of a normal repository. A mirror
repository is almost the same as a bare
repository, except it fetches all the references under refs/*
, where a bare only fetches the references that fall under refs/heads/*
. We'll now take a closer look at a normal, a bare
, and a mirror
clone of the Jgit repository.
Git Version Control Cookbook
Git Version Control Cookbook
Overview of this book
Table of Contents (19 chapters)
Git Version Control Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Navigating Git
Configuration
Branching, Merging, and Options
Rebase Regularly and Interactively, and Other Use Cases
Storing Additional Information in Your Repository
Extracting Data from the Repository
Enhancing Your Daily Work with Git Hooks, Aliases, and Scripts
Recovering from Mistakes
Repository Maintenance
Patching and Offline Sharing
Git Plumbing and Attributes
Tips and Tricks
Index
Customer Reviews