git-bare

Pushed to git bare repo and I can't pull changes from other machines

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:31:49
问题 I have a git repo on my Dropbox, I am using Ubuntu, I have a project which I've cloned via git clone blablabla/Dropbox/blablabla.git and I've pushed for like 500 times to that but all I can pull now from another machine is like first 400 also my blablabla/Dropbox/blablabla.git file is smaller than my local /var/www/blablabla/.git so I guess some files aren pushed and so it seems when I've cloned blablabla/Dropbox/blablabla.git from another machine so how can I properly push now on the first

Git: Push a local git submodule, including submodule files, to a remote bare repository

穿精又带淫゛_ 提交于 2019-12-08 03:37:59
问题 I have two local projects which I manage with git , one being dependent on the other – like this: project A/ ├── project B/ │ ├── file B₁ │ ├── file B₂ │ ├── … It makes sense to me to have project B as a git submodule of project A . Now, I have set up a remote bare repository for project A for backup and sharing purposes. Of course, I want the remote repository to contain all of project B , including its files ( file B₁ , file B₂ , …). But git push and git push --recurse-submodules=on-demand

How to create reflogs information in an existing bare repository

对着背影说爱祢 提交于 2019-12-07 02:48:27
问题 As you might have known that by default, git doesn't enable reflog updates for new bare repositories. The problem is, I have a long history repository but it was created before I set the flag "logAllRefUpdates" on, and now I want that information for another application to work. How can I achieve that with minimal changes made to the existing repository. A very simple solution is pushing a new commit which I don't want to (!) :-) 回答1: The reflog is a relatively simple file format. Here's an

Soft reset git bare branches

吃可爱长大的小学妹 提交于 2019-12-06 15:15:02
I have a set of GIT repositories that I always have different activities on differrent branches and they are all pushed to github the activities are linked to Redmine and would trigger Redmine to pick up the commits once a push happens. Since the Redmine is not setup to be on the cloud and therefore I can't use the fancy automated github hook to pick up the commits, I have setup the Redmine hook to do a fetch and soft reset to is bare repository when every time a ticket is update. The problem i have then is the processing time because this is what I do each time: # to update master branch git

Pushed to git bare repo and I can't pull changes from other machines

梦想的初衷 提交于 2019-12-06 14:37:50
I have a git repo on my Dropbox, I am using Ubuntu, I have a project which I've cloned via git clone blablabla/Dropbox/blablabla.git and I've pushed for like 500 times to that but all I can pull now from another machine is like first 400 also my blablabla/Dropbox/blablabla.git file is smaller than my local /var/www/blablabla/.git so I guess some files aren pushed and so it seems when I've cloned blablabla/Dropbox/blablabla.git from another machine so how can I properly push now on the first machine so I can pull from the second I also have branches plus git push dropbox shows Up to date Help?

Git: Push a local git submodule, including submodule files, to a remote bare repository

不打扰是莪最后的温柔 提交于 2019-12-06 06:10:22
I have two local projects which I manage with git , one being dependent on the other – like this: project A/ ├── project B/ │ ├── file B₁ │ ├── file B₂ │ ├── … It makes sense to me to have project B as a git submodule of project A . Now, I have set up a remote bare repository for project A for backup and sharing purposes. Of course, I want the remote repository to contain all of project B , including its files ( file B₁ , file B₂ , …). But git push and git push --recurse-submodules=on-demand don’t achieve this. Whenever I list the files in my remote repository by git ls-tree -r HEAD , only the

Why can’t you merge in a bare git repo?

寵の児 提交于 2019-12-05 13:26:28
Why can’t I merge into a bare repo? Bare repos don’t have a HEAD or a working tree. In the config file we can see bare=true . You also can’t pull in a bare repo (because pull = fetch & merge and merge doesn't work). However, you can push to a bare repo – why? As far as I know, push also contains a merge, but in this case we can do it well. So, the question could be “how does git merge work?”. Why does it need a HEAD ? What is it doing when merging? As Chronial points out , pushing does fast-forward merges or forced updates, which just moves references/branch pointers to a different commit. In

Executing git commands on a bare repository

一曲冷凌霜 提交于 2019-12-04 22:14:25
问题 On my server, I host some bare git repositories that I'm working on. I'd like to display some basic statistics about each repository on my website; for now, let's just say I want to do simple stuff like listing all the files in the repository. On a non-bare git repository, this can be done with git ls-files but for bare repositories this (and most other git commands) don't work. I'm sure there's probably a simple way of doing this particular command, but I'll probably want to show some

Adding things to a git bare repository

让人想犯罪 __ 提交于 2019-12-04 14:50:16
I know that if I have files in a bare repository, I can access them using git show HEAD:path/to/file . But can I add new content to a bare repository without cloning and modifying a working tree? jthill if I add 1 file, only the 1 file is in that commit, aka we added something new and it's now set in stone There's several convenient ways to add a single-file commit to the tip of the master branch in a bare repo. So it appears i need to create a blob object, attach it to a tree, then attach that tree object to a commit. All the ways to commit anything boil down to doing that, it's just a

Is there a git activity log?

和自甴很熟 提交于 2019-12-04 08:32:49
Something went really wrong here. Allow me to give the background. Today I try to push to our company default bare msysgit windows server and get a dreaded error message duplicated everywhere in SO about pushing to non-bare . I thought the message was weird, since my server was supposed to be bare. And yesterday it was working just fine. Then I noticed the core.bare is, somehow, set to false ! This was a repo inited with --bare and it never had a " .git " folder in it. And then I go check, and there it is, a .git folder, that to me appeared out of nowhere, to my dismay! I ask the only other