Re: git branch
- From
- Marcus Karlsson <mk@acc.umu.se>
- Date
- May 23, 2011, 11:46 UTC
- Message-ID
- <20110523114633.GE7387@kennedy.acc.umu.se>
- In-Reply-To
- <BANLkTinzped82Njnw4ZUeHY6Qu4R4hKK-w@mail.gmail.com>
On Mon, May 23, 2011 at 01:36:09PM +0200, Gergely Buday wrote:
Show 17 quoted lines
> Hi there, > > I created > > git branch install_2.0 > > for my install script. Then pushed to > > git push origin install_2.0 > > so that github stores by branch > > after another commit I tried to push again but git told me that I'm > not on that branch. Why git loses the state that I'm on a branch? What > should I do to have my expected behaviour? > > - Gergely
I'm not sure if I'm following you correctly, but with Git you need to check out your branch after creating it. Run git checkout install_2.0 after you have created it.
Marcus