Questions tagged [git-bare]

A bare git repository is so named because it has no working directory; it only contains files that are normally hidden away in the .git subdirectory. In other words, it maintains the history of a project, and never holds a snapshot of any given version.

From Git Magic, Chapter 3:

A bare repository is so named because it has no working directory; it only contains files that are normally hidden away in the .git subdirectory. In other words, it maintains the history of a project, and never holds a snapshot of any given version.

A bare repository plays a role similar to that of the main server in a centralized version control system: the home of your project. Developers clone your project from it, and push the latest official changes to it. Typically it resides on a server that does little else but disseminate data. Development occurs in the clones, so the home repository can do without a working directory.

Converting:

186 questions
-1
votes
1 answer

Git cannot push to remote bare repo

What I would like to do : I would like to create a remote that points to a bare git repository on a vps server accessible through ssh. This bare repository will embed a hook to fetch the latest branch version into another directory on the same vps…
thiout_p
  • 478
  • 6
  • 14
-1
votes
1 answer

How to get a per file size report from a git bare repository?

I would like to get a report of size per file from a group of git repositories. I was trying the below command by referring to a blog and which doesn't give me the actual size, Could someone suggest a git command that can be run on the bare…
Aswin
  • 1
-1
votes
2 answers

What does Git remote look like?

I'm creating a tutorial for my coworkers on 'how to Git', and I added a simple tutorial for add, commit, and push, and now I want them to verify what they did worked. I thought I would say "Go to the remote folder, and verify the new files are…
Rasmus Bækgaard
  • 677
  • 1
  • 9
  • 23
-1
votes
1 answer

Using pygit2's discover_repository to locate multiple repositories in a directory

I have a project in which I need to access a (local) directory of bare git repositories in order to get specific items from their history. I need a function which will iterate through the directory and do something like: repo =…
DJGrandpaJ
  • 541
  • 2
  • 7
  • 20
-1
votes
1 answer

TFS + Git newly initialized repository bare?

In order to make a good start using Git with Microsoft TFS after migrating a project from SVN, I want to be sure that the remote/shared repository in TFS + Git is set up as good as possible. I work on the project alone at the moment, but I want the…
TimWoo
  • 1
  • 3
-3
votes
2 answers

Deployment - is it safe to GIT push on a live production

I am currently looking forward to work with a bare git repository in order to deploy on a production server, i have a "post-receive" hook who use git checkout to update the production folder. The application is a PHP Website. In fact i'm wondering…
Fankohr
  • 1
  • 1
1 2 3
12
13