error initializing the branch
See original GitHub issueInitialized 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:
- Created 8 years ago
- Comments:10 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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?