"Luck, Tony" <[EMAIL PROTECTED]> writes:
> What I want is to get the latest from kernel.org...linus...master
> and update my .refs/heads/linus with the new SHA1.
>
> I'd like to be able to do that without touching what is in my
> index, and without changing the state of any checked out files.
>
>
>To set up "linus" short-hand to be updated with "master" branch
>head from Linus, you would do one of the following:
>
> * Using new style shorthand
>
>$ cat >$GIT_DIR/remotes/linus \
>URL: http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
>Pull: master:linus
>
[EMAIL PROTECTED] writes:
> Aha ... is this the problem that caught me out last week (when
> I ended up with 10 extra files attached to one of my commits)?
Plausible.
> 1) Updated my "linus" branch:
>
> $ git checkout linus && git pull linus
I would assume that just after "git checkout linus"
>* When the branch head pointed by $GIT_DIR/HEAD changes while
> the index file and working tree are looking the other way
> (e.g. somebody pushed into your repository, or you ran "git
> fetch" to update the ref your working tree is on), "git
> checkout" without -f gets confused. Figure out a good
4 matches
Mail list logo