On Tue, Jul 12, 2011 at 06:02:13PM -0500, Jonathan Nieder wrote: > Josh Triplett wrote: > > In a new empty repo created with "git init": > > > > $ git remote add -f b /home/josh/src/apters/prototype/new-store/repos/b > > Updating b > > remote: Counting objects: 3, done. > > remote: Total 3 (delta 0), reused 0 (delta 0) > > Unpacking objects: 100% (3/3), done. > > From /home/josh/src/apters/prototype/new-store/repos/b > > * [new branch] master -> b/master > > $ git checkout --track b/master > > Branch master set up to track remote branch master from b. > > Already on 'master' > > > > But I don't have master checked out before the call to checkout, making > > "Already on 'master'" incorrect. > > Sure you do. It's just a branch yet to be born.
At that point, the working copy contains no files. Sure, git assumes I'll start development on a branch named "master", but "git checkout --track b/master" effectively creates and checks out a new master branch, making it irrelevant that "git init" arranged for a master branch to come into existence the first time I did a "git commit". > But I agree that the output would be better without that last line. Thanks! - Josh Triplett -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

