Azure-devops-docs: refs/heads/trunk not found

Created on 12 Apr 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Thanks for these detailed instructions.
However, after the command "git branch -m trunk master" (isssued in the bare local repository) I receive the error message "error: refname refs/heads/trunk not found".
What might have gone wrong?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-whitepapertech devopprod doc-bug stale-issue

Most helpful comment

Try "git branch -m svn/trunk master"

Also in the section for creating a bare repo, the command should be "git symbolic-ref HEAD refs/heads/svn/trunk"

All 4 comments

Try "git branch -m svn/trunk master"

Also in the section for creating a bare repo, the command should be "git symbolic-ref HEAD refs/heads/svn/trunk"

This also affects the references for tags as well.

git for-each-ref --format='%(refname)' refs/heads/svn/tags | % { $_.Replace('refs/heads/svn/tags/','') } | % { git tag $_ "refs/heads/svn/tags/$_"; git branch -D "svn/tags/$_" }

I also hit this error. Try git branch to list the available branches. Then change the command accordingly.
For example, git branch -m bare/svn/trunk master instead of git branch -m trunk master

This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MJECloud picture MJECloud  Â·  3Comments

robinmanuelthiel picture robinmanuelthiel  Â·  3Comments

sevaa picture sevaa  Â·  3Comments

dannyvv picture dannyvv  Â·  3Comments

cijujoseph picture cijujoseph  Â·  3Comments