how to start with non-master branch?

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

 



I want my first commit to be on a non-master branch.
So after the git init I do
$ git checkout -b newbranch

I get
fatal: You are on a branch yet to be born

Of course I can get by with making the first commit on master and then
switching.

But wondering if I am missing something basic?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]