Re: [git-users] git checkout from one directory to another

2013-10-21 Thread Aaron Cook
I would have never thought to read that thread based on the title :)

I did find something here that I think answers my question

http://stackoverflow.com/questions/4479960/git-checkout-to-a-specific-folder


On Monday, October 21, 2013 10:55:31 AM UTC-4, Konstantin Khomoutov wrote:
>
> On Mon, 21 Oct 2013 07:43:15 -0700 (PDT) 
> Aaron Cook > wrote: 
>
> > I need to checkout a copy of a folder into another temporary 
> > "scratch" folder. 
> > 
> > For example, I have a directory 
> > 
> > /myproject/junk 
> > 
> > I want to checkout a previous copy of "junk into "junk_temp" so I get 
> > /myproject/junk <- HEAD 
> > /myproject/junk_temp <- some other rev. 
> > 
> > I know I could just do a git checkout revision# -- junk , copy the 
> > folder using cp, and then check junk out back to what it was. 
> > 
> > I was hoping there is a little cleaner way of doing this that didn't 
> > involve checking out the folder in the event that folder had 
> > modifications. 
>
> Has been discussed just yesterday [1]. 
>
> 1. https://groups.google.com/d/msg/git-users/q3Ta5jGhqUk/3RNnFnQcH08J 
>

-- 
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.


Re: [git-users] git checkout from one directory to another

2013-10-21 Thread Konstantin Khomoutov
On Mon, 21 Oct 2013 07:43:15 -0700 (PDT)
Aaron Cook  wrote:

> I need to checkout a copy of a folder into another temporary
> "scratch" folder.
> 
> For example, I have a directory
> 
> /myproject/junk
> 
> I want to checkout a previous copy of "junk into "junk_temp" so I get
> /myproject/junk <- HEAD
> /myproject/junk_temp <- some other rev.
> 
> I know I could just do a git checkout revision# -- junk , copy the
> folder using cp, and then check junk out back to what it was. 
> 
> I was hoping there is a little cleaner way of doing this that didn't 
> involve checking out the folder in the event that folder had
> modifications.

Has been discussed just yesterday [1].

1. https://groups.google.com/d/msg/git-users/q3Ta5jGhqUk/3RNnFnQcH08J

-- 
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.


[git-users] git checkout from one directory to another

2013-10-21 Thread Aaron Cook
I need to checkout a copy of a folder into another temporary "scratch" 
folder.

For example, I have a directory

/myproject/junk

I want to checkout a previous copy of "junk into "junk_temp" so I get
/myproject/junk <- HEAD
/myproject/junk_temp <- some other rev.

I know I could just do a git checkout revision# -- junk , copy the folder 
using cp, and then check junk out back to what it was. 

I was hoping there is a little cleaner way of doing this that didn't 
involve checking out the folder in the event that folder had modifications.

-- 
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.