[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gits] n00b git question

I do this kind of thing all the time, for example when I need to produce a copy of my CV that has some weird format requirement, like page limits.

With master checked out, just do 'git checkout -b <mynewbranch>', which will create the branch and switch to it. Then just 'git checkout <branch>' to move between master or your new branch.

On Aug 8, 2013, at 10:27 AM, Suresh Venkatasubramanian <suresh at cs.utah.edu> wrote:

> I'm about to make a small change to a document in order to format something for an editor. It's idiosyncratic and I don't expect to need this modification for continued editing in the document. I'd like to create a branch for this change that will probably dangle off the master, and then continue editing the master. what's the easiest way to do that ? 
> --
> Suresh Venkatasubramanian 	Web: http://www.cs.utah.edu/~suresh/    
> School of Computing 		Blog: http://geomblog.blogspot.com/
> University of Utah.
> A problem well put is half-solved. -- John Dewey