문제

I need to create an orphan branch, which has no parent. How do I do it in Smartgit?

Need some guidance on this..

도움이 되었습니까?

해결책

That is one instance where, if SmartGit doesn't support the orphan option from the GUI, you could as well use the CLI (command-line interface) and type a quick:

git checkout --orphan newbranch

(as in "In git, is there a simple way of introducing an unrelated branch to a repository?")

Commit at least one file (still through the GUI):

git add afile
git commit -m "a first commit in orphan branch"
# no push here, this is purely a local operation in your local repo

Then you go back in SmartGit and your new (orphan) branch should be there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top