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
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
  • 129
  • 1
  • 10
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
  • 52,420
  • 33
  • 225
  • 300
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
  • 1
  • 3
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,560
  • 1
  • 32
  • 57
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
  • 364
  • 2
  • 5
  • 15
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
  • 421
  • 1
  • 5
  • 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,669
  • 3
  • 29
  • 52
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…
n0pe
  • 9,209
  • 21
  • 81
  • 146
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
  • 153
  • 11
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,124
  • 2
  • 14
  • 28
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
  • 40,390
  • 50
  • 195
  • 282
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…
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,291
  • 2
  • 23
  • 36
1 2 3
12
13