android - GIT : All new branches come under previous branch -
i'm new git repo https://github.com/nayak94/nayak-kernel working on branch 0.1 wanted seek new feature made branch 0.2 using "git checkout -b 0.2" shows https://github.com/nayak94/nayak-kernel/branches 0.2 merged 0.1 can explain how works , read through many tutorials couldn't how can create new branch without merging old 1 ?
when create new branch, git forks new branch current branch on, in case, 0.1.
if want create branch master, should switch master , create branch there.
git checkout master git checkout -b 0.2 after have 2 branches (0.1 , 0.2) created master branch.
as side note: git checkout -b branch_name creates branch , switches branch. meanwhile git branch branch_name creates branch stays on current branch. if have used sec option, shouldn't have had problem.
android git github branch
No comments:
Post a Comment