From mboxrd@z Thu Jan 1 00:00:00 1970 From: stonekyx@gmail.com (Stone Kang) Date: Tue, 15 Jul 2014 13:37:42 +0800 Subject: Problems with Linux next tree In-Reply-To: References: Message-ID: <20140715053742.GA22732@stone-arch> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, Jul 15, 2014 at 12:52:07PM +0800, ??? wrote: > > Due to the way the linux-next tree is built, 'git pull' won't work. > > > > You want to 'git clone' Linus's master tree, then 'git remote add' > > the Linux-next tree. Then use 'git remote update' instead of 'git pull' > > when you want to refresh the tree. > > I use 'git remote update', and then try 'git checkout master', it > tells that my branch has diverged. > But I do not have modifies on that branch. So I have to try 'git reset > 20140707', and then checkout successed. I don't know why, any help? > There might have been an upstream rebase since your last pull (or clone). Check out `git help rebase` for more about this. After running `git reset 20140707`, HEAD points to a position after rebase, so checkout is possible now.