Exactly. git checkout "magically" changes the files in the same directory to be whatever they are for the branch you are checking out.
You might read at least the first part of http://www-cs-students.stanford.edu/~blynn/gitmagic/ (maybe there are better tutorials, but this is the one I used, and I thought it was pretty good), so you can get a basic grasp on what git does. Also using tools like gitk (or GitX if you are on Mac OS X) to visualize the history is very useful for learning about git. GitHub also has a Mac OS X tool that I wasn't a fan of, but you can see if you like it. Aaron Meurer On Tue, Mar 27, 2012 at 1:40 PM, Tom Bachmann <e_mc...@web.de> wrote: > No you do all your work in the same directory. This took some getting used > to for me, but most of the time it's actually quite neat. > > (In particular you can have several branches, which you can see with "git > branch", and switch between them with "git checkout".) > > > On 27.03.2012 20:10, Comer Duncan wrote: >> >> Hi Aaron, >> >>> You can >>> achieve this with the command >>> >>> git checkout -b new_branch_name >>> >> >> Yes, but do I do that from another directory than >> /Users/comerduncan/sympy where I have my current master cloned a >> while ago and used to do pulls? In a way it would be cleaner to have >> another unique branch named comer-sympy or something... please advise. >> >> Thanks. >> >> Comer >> >> >>> On Tue, Mar 27, 2012 at 12:45 PM, Comer Duncan<comer.dun...@gmail.com> >>> wrote: >>>> >>>> Chris, >>>> >>>> Yes grep is a good thing. I have been using it since the 1980s when I >>>> first started using unix. >>>> >>>> I am now starting to confront getting knowledge of git... >>>> >>>> I have a github account, have been using the git master of sympy for >>>> several weeks and do a git pull every once in a while. For the making >>>> and baking of my 'new' functions/methods, can I continue to use the >>>> sympy I have and pull from to update or should I do another fork and >>>> name it something else so as not to get confused about who is who? >>>> >>>> Comer >>>> >>>> On Tue, Mar 27, 2012 at 2:36 PM, Chris Smith<smi...@gmail.com> wrote: >>>>> >>>>> >>>>> >>>>> On Wed, Mar 28, 2012 at 12:06 AM, Comer Duncan<comer.dun...@gmail.com> >>>>> wrote: >>>>>> >>>>>> >>>>>> Hi Chris, >>>>>> >>>>>> >>>>>> >>>>>> I have used this in my little implementation of the dual. Actually, I >>>>>> first wrote my own Levi-Civita function only to discover later that it >>>>>> is already done and in the tensor_functions module. Thanks for >>>>>> checking. >>>>>> >>>>> >>>>> grep is helpful in this regard. I knew that I had seen it before and if >>>>> it's >>>>> in the namespace I do something like >>>>> >>>>> ``` >>>>>>>> >>>>>>>> [w for w in dir() if 'Levi' in w] >>>>> >>>>> ['LeviCivita'] >>>>> >>>>>>>> help(LeviCivita) >>>>> >>>>> Help on class LeviCivita in module >>>>> sympy.functions.special.tensor_functions: >>>>> >>>>> class LeviCivita(sympy.core.function.Function) >>>>> | Represent the Levi-Civita symbol. >>>>> | >>>>> | For even permutations of indices it returns 1, for odd permutations >>>>> -1, >>>>> and >>>>> | for everything else (a repeated index) it returns 0. >>>>> ... >>>>> ``` >>>>> >>>>> This doesn't help if it's not imported. In those cases, grep is your >>>>> friend...and the sympy list :-) >>>>> >>>>> /c >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups >>>>> "sympy" group. >>>>> To post to this group, send email to sympy@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> sympy+unsubscr...@googlegroups.com. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/sympy?hl=en. >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "sympy" group. >>>> To post to this group, send email to sympy@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> sympy+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/sympy?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "sympy" group. >>> To post to this group, send email to sympy@googlegroups.com. >>> To unsubscribe from this group, send email to >>> sympy+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/sympy?hl=en. >>> >> > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.