git create branch without history

PollerJava
PollerJava
Hi, this is my first thread and I say thank you in advance for your help. I use git until 2 weeks and now I have a major problem. I use git with bitbucket. I habe 2 branches in my repository. I checked out one branch and I have completely changed my project (other name, added a lot of resources, added new projekts, ...) Now I will make a completely new branch but there is no possibility with Bitbucket to make a branch without history. I read that there is a flag --orphan (git checkout --orphan) that can do this. But actually I don't know how to do it. Maybe some one can tell me what I can do in order to do this. Where I have to go in the Git Bash and what is the command I have to give in. Thanks a lot for your help and all the best. Poller

Last updated

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
3405 views