git-bare

Git push “write error: Operation not supported”

左心房为你撑大大i 提交于 2020-07-21 06:13:08
问题 I have a bare git repo on a samba share server which my team are able to push to but when I try to push I get the error: remote: fatal: sha1 file './objects/pack/tmp_pack_<changes-with-every-push>' write error: Operation not supported error: unpack failed: index-pack abnormal exit To /run/user/1000/gvfs/smb-share:server=<ip-address>,share=<share>/<directory>/<bare.git> ! [remote rejected] <my-branch> -> <my-remote-branch> (unpacker error) Here's a list of what I've tried: I copied the bare

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

帅比萌擦擦* 提交于 2020-01-17 13:05:08
问题 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 .git/config This got me thinking about the purpose of having a configuration setting whether a repo is bare or not. Reading git-config it appears to be used to avoid having to guess whether a repo is bare or not. I know you can't checkout in a bare repo but you can't

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

筅森魡賤 提交于 2020-01-17 13:05:05
问题 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 .git/config This got me thinking about the purpose of having a configuration setting whether a repo is bare or not. Reading git-config it appears to be used to avoid having to guess whether a repo is bare or not. I know you can't checkout in a bare repo but you can't

Does copying the Git bare repo change the log?

倾然丶 夕夏残阳落幕 提交于 2020-01-07 05:38:48
问题 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 tagging. I used: cp --preseve -r original.git copy_of_original.git Although I understand one can undo bad commits and whatnot, I don't want to leave the repo with all these reverted commits, nor do I want to do any refactoring, hence my desire to just

where are project files in remote repo in Git?

谁都会走 提交于 2020-01-05 06:54:28
问题 I start to use Git and my project VCS. I have created a remote repo using git init --bare in /codes-repo and push changes from local repo to there. then I want to move project files from there to /var/www/project to be accessible for http://.... . but I don't see any project files (index.php,css/,....) at /codes-repo to copy them, there are only git files and folders there. Where are them?? 回答1: A bare repository does not have a checkout. That is to say, a bare repository only holds the

Is there a git activity log?

青春壹個敷衍的年華 提交于 2020-01-01 10:53:30
问题 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

Git Repo Auto-commit and Push

北城余情 提交于 2019-12-24 19:38:59
问题 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 repo using the post-commit hook. Now, I have the cloned repo as a bare repo. But, what I would like to do at this point is have a script run each time a push is made. That script would read the content of the file(s) that were just pushed. Is that

Do I need to merge a branch in a bare repo?

孤街醉人 提交于 2019-12-24 05:49:32
问题 In my setup I have three repos: A bare repo on remote server ( /op/git/proj.git ) A non-bare repo on remote server ( /var/www/proj/.git ) A non-bare repo on local machine ( /var/www/proj/.git ) The bare repo is origin to both ordinary repos on local and remote. Whenever I do a commit on local, I do a local push to bare repo and then pull on ordinary remote repo and I get my changes on remote. Now, I want to merge branch A to master which method should I use? (Assume master is the current

Soft reset git bare branches

感情迁移 提交于 2019-12-23 01:52:46
问题 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