Problem with git: remote 'refs/heads/master' is not an ancestor of local 'refs/heads/master' -


i faced situation don't understand. have remote git repo running on webdav / apache. sure, logged on server , run "chown -r wwwrun:www *" , "git update-server-info" on relevant directory (as root, obviously).

now, do:

git clone http://myserver/myrepo 

then:

$git remote show origin * remote origin   fetch url: http://myserver/myrepo   push  url: http://myserver/myrepo   head branch: master   remote branches:     master   tracked     trunk    tracked     trunk2.0 tracked   local branch configured 'git pull':     master merges remote master   local ref configured 'git push':     master pushes master (fast-forwardable) 

and change file, stage, commit , try push, results in:

error: remote 'refs/heads/master' not ancestor of local 'refs/heads/master'. 

obviously, attempt pull pointless:

$git pull up-to-date. 

the repository fine few days ago. how can work again?

ok, resolved problem wrote in comment. used 1 of local repositories make bare remote repo , else got synchronized it.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -