I've received a bare git repository to work on - let's call it bare.git.
I've saved it into D:/workspace/bare.git and cloned it
$git clone bare.git bare
Everything worked normally untill I wanted to push my changes. I've received the following git error
$git push
error: failed to push some refs to 'D:/workspace/bare.git'
$git push origin master
error: failed to push some refs to 'D:/workspace/bare.git'
From my perspective everything is set properly but I still cannot figure out why I cannot push anything.
$git remote show origin
remote origin
Fetch URL: D:/workspace/bare.git
Push URL: D:/workspace/bare.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
This is my .git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = D:/workspace/bare.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
And yes - there are some commits already in the master branch of the bare repository.
Any ideas?