NetBeans does not allow pushing into remote GIT branch (no branching)

I am new to GIT VCS so I am lost.

I am using NetBeans 7.2.1 and working on a PHP project with a remote GIT repository.

I cloned the GIT repository, during this process I checked out all remote branches.

Everything went well. Then I switched to remote branch "BUG0025" and made the necessary code changes.

Now it's time to commit and push.

  • Commit.
    I do Git->Commit

    It says there are no files to commit under "Changes between HEAD and Index". All the files I've worked with are in the Changes Between HEAD and Working Tree section. Good. Pushing commit. Everything seemed to be going well.

  • Click.
    I'm going toGIT->Remote->Push

And boom! Here we go:screenshot

As you can see, it doesn't show the branch I was working with, istead I see a strange branch (no branch).

It looks like even though I switched to the correct branch, no local copy was created and my commit did not create a "(branch)" branch anywhere.

If anyone can help me that would be awesome! Thank!

+3


source to share





All Articles