question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error initializing the branch

See original GitHub issue

Initialized empty Git repository in D:/bvkmut/Main/.git/ Fetching from TFS remote ‘default’… C22827 = 97c4058b28b73c187938844f0ba39e945ab53feb Tfs branches found:

  • $/BVKMut-ES-Tool/Release1.0
  • $/BVKMut-ES-Tool/Release2.0 => Working on TFS branch : $/BVKMut-ES-Tool/Release1.0 Branches to Initialize successively : -$/BVKMut-ES-Tool/Release1.0 (24171) The name of the local branch will be : Release1.0 error: an error occurs when initializing the branch. Branch is ignored and continuing… => Working on TFS branch : $/BVKMut-ES-Tool/Release2.0 Branches to Initialize successively : -$/BVKMut-ES-Tool/Release2.0 (32751) The name of the local branch will be : Release2.0 error: an error occurs when initializing the branch. Branch is ignored and continuing… => Working on TFS branch : $/BVKMut-ES-Tool/Main Warning: git gc failed! warning: Some Tfs branches could not have been initialized:
  • $/BVKMut-ES-Tool/Release1.0
  • $/BVKMut-ES-Tool/Release2.0

Please report this case to the git-tfs developers! (report here : https://github.com/git-tfs/git-tfs/issues/461 ) warning: Some Tfs branches could not have been initialized or entirely fetched due to errors:

  • $/BVKMut-ES-Tool/Release1.0 =>error:error: Couldn’t fetch parent branch
  • $/BVKMut-ES-Tool/Release2.0 =>error:error: Couldn’t fetch parent branch

Please report this case to the git-tfs developers! (report here : https://github.com/git-tfs/git-tfs/issues )

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pbl2108commented, Feb 5, 2016

I was having the same problem where the main branch was deleted and started from scratch, and starting from the first changeset after the delete (e.g. --changeset==12345) solved the problem for me. The full command looked something like this:

> git tfs clone https://tfs.codeplex.com:443/tfs/Collection $/project/trunk --changeset=12345 --with-branches

1reaction
elangelocommented, Sep 24, 2015

I have detected what is probably the problem. At a certain moment the developer decided to delete everything (so also the Main branch) and start from scratch. He started again from c22829. So i could fix my problem with a simple --change-set=22829 to skip all changes before that 😃 Is there anything in this case that might justify further research?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration of TFS to GIT using git-tfs tool not ...
Looking for changeset 78197 in git repository: CacheIsFull, stopped looking. error: an error occurs when initializing the branch.
Read more >
Github branch initialization throws error "No meta data ...
When initializing a branch for a client on github, the initialization does not finish successfully and JCP log shows: U00045014 Exception ...
Read more >
Git - git-init Documentation
This command creates an empty Git repository - basically a .git directory with subdirectories for objects , refs/heads , refs/tags , and template...
Read more >
No default branch at all on git init?
Whenever I create a repo, there is no default branch (the drop down arrow under admin tools is unresponsive on click). Because of...
Read more >
Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
This error means that you have some files that have been edited but not committed, and by checking out another branch, you'll overwrite...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found