Clicking on a remote branch (ref update failed)

I have a remote repository with a feature / initital-change branch. Now I want to push some files to this remote branch from my local / initialization branch.

I looked at a few posts saying I clicked on remote branches and tried several methods, but still getting the same error. After adding and committing, I get the following for git status.

Sakibs-MacBook-Pro:BluFireLabs SakibArRahman$ git status
On branch feature/initial-change
Your branch is ahead of 'origin/feature/initial-change' by 1 commit.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean

But when I click, I get the following:

Sakibs-MacBook-Pro:BluFireLabs SakibArRahman$ git push origin feature/initial-change
Counting objects: 255, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (141/141), done.
Writing objects: 100% (255/255), 6.57 MiB | 1.88 MiB/s, done.
Total 255 (delta 49), reused 13 (delta 5)
remote: error: Cannot update the ref 'refs/heads/feature/initial-change': unable to create directory for logs/refs/heads/feature/initial-change: No such file or directory
To git@bitbucket.org:bluefirelabs/fire-voice-droid.git
 ! [remote rejected] feature/initial-change -> feature/initial-change (failed to update ref)
error: failed to push some refs to 'git@bitbucket.org:bluefirelabs/fire-voice-droid.git'

Any idea on how I can fix this or what am I doing wrong? Thanks in advance!

+4
source share
2 answers

, , / , .

:

  • feature
  • feature/initial-change

feature , feature/initial-change feature initial-change. :

  • logs/refs/heads/feature
  • logs/refs/heads/feature/initial-change

feature :

git push --force origin :feature
+4

, Git bare repo ref/head, ​​.

0

All Articles