I have set up a linux box with a Git repository (using xinetd).
I have enabled receive-pack for the git daemon to enable pushing to the repository.
Here's my current testing workflow:
mkdir something
cd something
git init --bare
git clone git://server/repo
(msg about cloning an empty repository)
Perform some commits to the cloned repository.
git push
getting this msg:
Counting objects: 8, done. Compressing objects: 100% (3/3) done, Writing objects: 100% (6/6)
This does not finish. I have introduced only a small change, so this should be completed very quickly.
am i doing something wrong here?
If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.
A commit gets rejected and causes a failed to push some refs to error because the remote branch contains code that you do not have locally. What this means is that your local git repository is not compatible with the remote origin.
The upstream Git repository will be oblivious to your attempted push, and no change will occur upstream. Unfortunately however, as it doesn't do anything with the half-pushed files, it doesn't store it and then expect a continuation of the push later on either.
This option overrides the "fast forward" restriction and matches our local branch to the remote branch. The --force flag allows you to order Git to do it anyway. When you change history, or when you want to push changes that are inconsistent with the remote branch, you can use push --force .
If you are using msysgit - they have just released a version that allows a config option to stop git hanging.
Fix is for https://github.com/msysgit/git/issues/101 in release https://github.com/msysgit/msysgit/releases/tag/Git-1.9.4-preview20140611
You can fix it by setting
git config --global sendpack.sideband false
The issue is with mgitsys client
Read more here: MGitsys Bug
As a workaround, i am using an older version: git version 1.7.4.rc1.3197.gbf965
This one doesn't have this bug in it.
I have placed this specific build in my SkyDrive public folder, link: http://sdrv.ms/MeuWTD
Hopefully it will be fixed in the near future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With