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

Understanding git tagging, rebasing and bare repos

In git: Do you tag branches or repos? When you tag a branch/repo, are you only tagging the changes that are fully committed, or do you also tag changes that have been added/staged? Under what circumstances would ever need to rebase a branch?…
user1768830
0
votes
1 answer

Pushing to branch on bare Git repo

I created a bare Git repo on my production server. I then pushed my local repo to the bare repo and that worked. However, I then realized that I should have pushed my production repo to bare instead, because my local is outdated. So I tried that but…
Chris Barnhill
  • 621
  • 1
  • 7
  • 12
0
votes
1 answer

Git submodule in remote repository

I have trouble understanding how submodules work. I have a remote repository PARENT and a remote repository CHILD. I would like to make repository CHILD a submodule of repository PARENT, so when I check out PARENT, CHILD will be checked out too…
0
votes
3 answers

Does copying the Git bare repo change the log?

I'd like to try out a few things with git and I don't want to screw anything up in the working repository. To try to keep things safe, I've made a copy of the bare repo that I work from and from this repo I am intending to do all my pushes and…
EMiller
  • 2,792
  • 4
  • 34
  • 55
0
votes
2 answers

Having a remote test repository with git

In my current set up, my development server has a bunch of bare git repositories from which me and some other users push to. However, now, I'd like to integrate PHPUnit testing on the server itself. My initial idea was to have a sub directory in…
user623990
0
votes
1 answer

Git Repo Auto-commit and Push

I have a scenario where I have a repo where users access the files directly, they don't know git exists, and make changes to what are essentially text files. I have that repo cloned. So when a commit is made, the changes are pushed to the cloned…
awolfe76
  • 215
  • 5
  • 13
0
votes
2 answers

How to use Git post-receive hook on a remote machine (instead of locally)?

We are using a Windows development server for hosting my Git bare repo. We use direct file access to the server (no SSH, GIT or HTTP). This works excellent, and the team is happy. We are now trying to have the development server perform a deploy…
DotBert
  • 1,262
  • 2
  • 16
  • 29
0
votes
1 answer

git - shared repository sgid

I'm using a bare sharedRepository to allow a group of developers to push. In order to keep the good file group on pushes, I changed SGID of objects $ sudo chmod -R g+s my_repository/objects If it really is the right way to do, should I change the…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
0
votes
1 answer

Error: Cloning a bare git repository

I tried to make a new bare git repository but I get this error: Max:Git-Projekte max$ git clone --bare . ~/Dropbox/Git-Projekte/Mainpage.git Cloning into bare repository '/Users/max/Dropbox/Git-Projekte/Mainpage'... fatal: failed to open…
Kirsche
  • 44
  • 6
0
votes
1 answer

Git remote server none-bare without user

Ok, check this out. I have a mac osx server with git installed. We use it for collaborating on projects. What we want is to be able to push to none-bare repository on the server so that we can view the websites on it. The problem is, a none-bare…
Spoeken
  • 2,549
  • 2
  • 28
  • 40
-1
votes
1 answer

Trying to bare clone a repo - but only got an empty repo at local

I'm using M2 Macbook. I'm trying to bare clone this repo for a school assignment. Not sure what I did wrong, but what I get at local is totally different from the GitHub repo. but every time I tried to bare clone an repo, it seems like I only got an…
883km
  • 27
  • 4
-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
  • 717
  • 11
  • 15
-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
  • 737
  • 2
  • 11
  • 27
-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
  • 571
  • 3
  • 7
  • 20
1 2 3
13
14