Thanks William, Fish, Philip  for the quick response.

On Thu, Jul 4, 2013 at 11:03 PM, Fish Kungfu <fish.kun...@gmail.com> wrote:

> I'm new to Git, so I might be wrong, but it sounds like you might want to
> use "stash" in this instance.
>
> http://git-scm.com/book/en/Git-Tools-Stashing
>
>
> 2013/7/4 Dinesh Vijayakumar <dinece...@gmail.com>
>
>> Hello Git-users,
>>      I've a question regarding the use of multiple local branches.
>>
>> Let's say, I've created a branch b1 and made some changes like adding a
>> new file to the branch b1 after checking it out.
>>
>> Then , I stage the file but not commit it.
>>
>> Now I find myself a need to create another branch to work on a high
>> severity issue.
>>
>> So, I checkout local master branch and create another b2 from master.
>>
>> Now when I switch to b2, git shows the new file which is added to branch
>> b1.
>>
>> Shouldnt it replace the contents of my working directory with the
>> contents of parent branch master ?  Instead it shows the new file when i do
>> git status.
>>
>>
>> Can you please explain how does this work ?
>>
>>
>>
>> Thanks,
>> Dinesh.
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Git for human beings" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to git-users+unsubscr...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/V6BszmY6gaY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
DescifradorZ

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to