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.
206
questions
0
votes
1
answer
27
views
Git Client For A Bare Repository
Do you know a github-like bare repository hosting tool of git?
In my company, an shared file server is available but web server is not available.Then I found git bare repository. It seems to be able ...
-1
votes
1
answer
77
views
Why did a small commit cause git bare repo to double in size?
I created a clean git bare repo and pushed around 300MB of files to it (on the master branch). At this point, the git bare repo was 57MB in size. I then changed 10 files, 9 were small ~1KB source ...
-1
votes
1
answer
65
views
Using git clone -mirror with --filter blob:none
How do I do programatically do a bare blobless clone of a remote repository, and then later clone that to a working (non-bare) repository?
Why would I want to do this?
makepkg (Arch Linux's package ...
-1
votes
1
answer
108
views
How can I write a commit hook to cherry-pick last commit from main branch to other worktrees in a bare repo? [duplicate]
I have 3 branches called main, macos and linux. As soon as I commit something to main branch, I want to cherry-pick that commit to other two branches. I also want to do this in a bare repo.
❯ git ...
1
vote
1
answer
120
views
Is it possible to do parallel 'git checkout' operations from a bare git repository?
We maintain a clone of our primary Git server for scanning and indexing content. Our "clone" is a collection of bare git repositories.
When we begin to execute one of our cycles, each bare ...
0
votes
0
answers
36
views
track a file with git repo as well as separate git bare repo
I use to manage my dotfiles with a git bare repository.
However some of my dotfiles are already in git repositories existing for a long time.
I dont want to lose all the change history so I would ...
1
vote
1
answer
194
views
Adding a submodule in a git remote repository
In git, I created a top-level firmware project like this
mkdir firmware
cd firmware
git init --bare
cd ..
mkdir firmware_pci
cd firmware_pci
git init --bare
Now I want to add firmware_pci as a ...
0
votes
0
answers
48
views
Setting up a bare-repository with an existing working directory and pulling from this bare-repository
I want to realise the following scenario:
Currently I have an application running on my server for which I yet do not use Git.
I want to setup a bare-repository on my server, so that changes that I ...
-1
votes
2
answers
117
views
Using git log on a bare git repository with remote name in revision
I've been experimenting with git worktree and found some weird issue. Maybe it has to do cloning the repository as --bare.
$ cd ~
$ git clone --bare https://github.com/actions/checkout.git
The ...
0
votes
0
answers
20
views
How can I allow non-fast-foward commits on some branches but not others in a bare git repository? [duplicate]
I have a bare git repo as my remote. The master branch is protected from force pushes and other history changes with the following in the config file:
[receive]
denyNonFastForwards = True
...
0
votes
2
answers
178
views
Git GUI fails to identify bare repository while TortoiseGit succeeds
While I understand the difference between a bare and non-bare Git repositories, I am puzzled by how a bare repository is not identified as a valid repository by git-gui (despite successful push via ...
-1
votes
1
answer
193
views
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 ...
1
vote
1
answer
464
views
How to simple CI/CD with git bare repo
In Office, we use git bare repo to be our remote repo on NAS, we don't use gitlab or github etc.
And we have another own remote server to host products(without git). I need to FTP to remote server and ...
1
vote
1
answer
191
views
Git post-receive hook with two servers
We have two servers - ServerA (bare repo) and ServerB (hosted project folder). Every time a developer pushes local changes to ServerA they should be automatically pushed to ServerB.
What I have tried ...
0
votes
1
answer
57
views
how to make `git --bare` with all files within `.git/`
I am using bare repositories in addition to git worktree add to manage to handle multiple branches at the same time.
It turns out git clone --bare moves all files from .git/ to ./, and it is very hard ...