For some bizarre reason, most likely to confuse new users, the 

  git checkout -b name 

   means 

   git branch name   (which makes a new branch) followed by
   git checkout name

Likely some allegedly smart person figured -b is short for branch so everyone 
will instinctively know that that -b means create a new branch. Of course to 
new users who don't know git they would never think -b meant create a new 
branch. The problem is that the developers of git have absolutely no taste in 
user interface design and likely consider any time spent thinking about user 
interface issues is wasted and just use the first stupid thing that pops into 
their head.
 

  Barry


  
On Mar 20, 2013, at 2:11 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> 
> On Wed, Mar 20, 2013 at 2:01 PM, Paul Mullowney <paulm at txcorp.com> wrote:
> Ok. Being a git novice, I don't know how to pull from my branch.  I tried:
> 
> git clone https://bitbucket.org/petsc/petsc.git/
> cd petsc
> git checkout -b pm/aijcusparse-icc
> 
> This created a new branch, but you want to check out an existing branch.
> 
> To get yourself back in a "clean" state, use
> 
> $ git checkout master
> $ git branch -d pm/aijcusparse-icc
> 
> Then checkout the existing branch using
> 
> $ git checkout pm/aijcusparse-icc
> 
> 
> Or, if you want to be more explicit,
> 
> $ git checkout -b pm/aijcusparse-icc origin/pm/aijcusparse-icc
>  
> 
> However, I don't see the changes which include the ICC functionality. What am 
> I doing wrong? I also tried the following which didn't work.
> git checkout -b remotes/origin/pm/aijcusparse-icc
> 
> What am I doing wrong?
> 
> 

Reply via email to