Version Control with Bitbucket (Git) throws error “no current branch”

I took over a project built with Cordova, Ionic and AngularJS to finally create a hybrid mobile app.

Source code is stored on bitbucket.org using Git; originally (before I took over) the code was downloaded from there.

  • Cannot clone my bitbucket repository after doing a commit with a 3.6 GB bin file
  • Composer permission denied (publickey)
  • How to manage multiple ssh keys in the ~/.ssh directory
  • git - error while trying to commit a C++ project
  • how to create folder on BitBucket?
  • Recovering a deleted branch from a remote on Bitbucket (git)
  • On https://bitbucket.org v1.0 can be found; locally the code is v2.0.

    Now I want to upload v2.0, but receive the message in IDE WebStorm 11.x: Can´t update: no current branch. You are in 'detached' state, which means that you're not on any branch. Checkout a branch to make update possible.

    Note: Clicking the right little botton on the buttom showing versus origin/develop (which is the one on Bitbucket) and the on merge provides the message Already up-to-date, which is not true as files are(!) different.

    git reflog says:

    28ac44d HEAD@{0}: commit (merge): Merge remote-tracking branch
    ‘origin/develop’ into HEAD 338ffde HEAD@{1}: checkout: moving from
    develop to 338ffde8364f6bbf860d61b86eecbef8e84fe708 6399852 HEAD@{2}:
    commit (merge): Merge remote-tracking branch ‘origin/develop’ into
    develop 05e819c HEAD@{3}: merge remotes/origin/master: Merge made by
    the ‘recursive’ strategy. 338ffde HEAD@{4}: commit: Version 2.0.0
    2c9fc80 HEAD@{5}: clone: from
    https://joey@bitbucket.org/abcdefgh/ijklmnop.git

    What do I have to do now?

  • Force Feature Branch to be Rebased Before it is Merged or Pushed
  • How do I clone a job in jenkins?
  • Git: can't commit a file even though I've resolved the conflict
  • GitHub: searching through older versions of files
  • Why does my Git mergetool configuration not work?
  • Git commit ERROR: Repository invalid
  • Git Baby is a git and github fan, let's start git clone.