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:

197 questions
0
votes
1 answer

Cloning/mirroring private Git repo for development

I'm in a development team doing some bugfixes for another company. The other company has our current code stored in their VCS, which is Git. However, only a few of us in the dev team have direct access to the Git repository via VPN. Now we want to…
Viktor
  • 487
  • 2
  • 8
  • 26
0
votes
1 answer

Read bare repo files on the fly

Is there a way of reading the files of a bare repo? For instance, I want to analyze each file and extract some features from a repository but without checking out the entire repo locally. P.S: ideally, want to use C# for this Thanks
Shmwel
  • 1,697
  • 5
  • 26
  • 43
0
votes
1 answer

Delete last push in git server

I deploy the code in one of my server with according to this tutorial: How To Set Up Automatic Deployment with Git with a VPS But now i have problems with some commit pushed to deploy server, some times the code inside of the githooks, make that…
aasanchez
  • 179
  • 1
  • 16
0
votes
2 answers

How can I setup a bare GIT repository that after pushes the new content is visible?

I have this scenario: A colleague of mine and I are working on the same branch (master) of a git project "xy". In order to make teamwork possible, i created a bare repository of the project and put it on a network drive which is accesible to both of…
0
votes
1 answer

Adding files to a bare directory not working

I need a bare repository that I publish to using VS2015. However, my publishing fails because there is already a "config" file created with the --bare command. This file is web.config I assume. I confirmed this by trying to just paste the files…
REMESQ
  • 1,190
  • 2
  • 26
  • 60
0
votes
1 answer

Get a tree of files in a bare git repo on at a specific commit

You can use git ls-tree --full-tree -r HEAD on a bare repo to get all the files in that repo, but I want that list for specific commits. I.e. I want to walk though a repo commit by commit from the first commit until I'm at HEAD and see how the file…
Joshua Olson
  • 3,675
  • 3
  • 27
  • 30
0
votes
2 answers

Git Bare repository fail. Missing necessary objects. Can't commit/push

About one month about I've created bare git repository. And over last month I've been committing my source changes from eclipse to that repository over SSH. The problem occurred today, when I tried to commit and push updates from eclipse. Here is…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
0
votes
1 answer

git push does not update remote workdir

I do execute the following steps to create on DEBIAN Server 1) git bare repo; 2) a working dir, where the files are copied after local git push; 3) a local clone on Windows, bare server repo is cloned. I executed the following commands: # SERVER:…
klor
  • 1,237
  • 4
  • 12
  • 37
0
votes
0 answers

Intellij 14: Unable to create working repository from git "bare" repository

When I try to check out a Git non-working repository (created with the -bare option), Intellij doesn't create a working local repository but just clone the .git folder! So my question is how do you create a local working Git repository from a…
Lucas.de
  • 555
  • 8
  • 17
0
votes
2 answers

Bare git vs .git/ - purpose of config.bare

Background: I've created a bare repo cd ~ git init --bare GitDrive The idea was to use this as the git dir for google drive cd "Google Drive" echo "gitdir: ../GitDrive But git didn't like this until I removed bare = true from…
hultqvist
  • 17,451
  • 15
  • 64
  • 101
0
votes
2 answers

Git reindex untracked added files in remote repository

i have --bare remote repository. files in dev folder and hook post-receive from dev.git folder. now my developers sometimes change and ftp code strait in dev folder. changes doesn't appear when i clone pull or checkout repository, is there a way to…
user2224893
  • 139
  • 2
  • 12
0
votes
3 answers

What is the significance of the active branch in a bare git repository?

When I tried to delete a branch in a bare repo, I was told that I can't because I'm "currently on it". A bit surprising, as I expected not to be on any branch in a bare repo. Which branch should be active in a bare repo used as the central…
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
0
votes
1 answer

Remove bad filename on bare repo, moment 22

I use a bare repo on a USB drive to work on a personal project at work and at home. HOME: working on a Mac. Accidentally committing and pushing a badly named file containing * WORK: try to git pull. Partly works OK, I get all necessary files to work…
tjoflong
  • 11
  • 4
0
votes
1 answer

How can I achieve the effect of pulling into a bare repository which isn't a mirror?

I'm trying to set up a repository system which allows projects to share a "framework" remote, so that bugfixes to the framework can be pulled into the projects. My approach for this is to set up a bare repository at //NAS/projects/base, clone it to…
Peter Taylor
  • 4,918
  • 1
  • 34
  • 59
0
votes
1 answer

Git workflow: PDT + Egit on Eclipse workspace and Git bare repository

I'm developing a Symfony applicatoin and I'm trying to set up a Git workflow on Eclipse. The workspace (where the project files lies) are located on /home/sfprojects/testing/ and the Git repository is located on /var/git/testing. Reading over and…
abiyi
  • 394
  • 2
  • 6
  • 16