Re: untracked file deleted from the master branch, when checked out to it from a local branch
- From
Arup Rakshit <aruprakshit@rocketmail.com>
- Date
- May 20, 2014, 16:03 UTC
- Message-ID
- <1949847.AaDQEtxZHd@linux-wzza.site>
- In-Reply-To
- <537B8959.7090100@gmail.com>
On Tuesday, May 20, 2014 11:56:57 AM you wrote:
> On 5/20/2014 10:38 AM, Arup Rakshit wrote: > > I was following some tutorial (http://gitref.org/branching/#merge) - and > > doing it in my console :
Show 8 quoted lines
> > Because you never committed the original file to the master branch > before you created and switched to the change_class branch. > > You're missing > git add test.rb > git commit -m "initial version of test.rb" > before you switch branches the first time.
Hum, But when I create a new branch from master, then it came to the new branch, but deleted from the master. Shouldn't it also not come to the new local branch also. That's how I expected.
-- =============== Regards, Arup Rakshit