Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8880297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:08:25+00:00 2026-06-14T20:08:25+00:00

I was previously using GIT with unfuddle, however I’m looking at trying Gitflow with

  • 0

I was previously using GIT with unfuddle, however I’m looking at trying Gitflow with Github as the central repository. So far I have done the following so far:

  • Create Github account and create repository within Github I.e website
  • cd /home/username/Downloads/ (on local machine)
  • wget -q –
    http://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh
    –no-check-certificate
  • sudo chmod a+x gitflow-installer.sh
  • sudo chmod a+x gitflow-installer.sh
  • cd /var/www/website/ (where the website files are)
  • git flow init
  • git remote add origin git@github.com:username/website.git
  • git add *
  • git commit -am “initial commit”

All files are now committed ready to push to the central repository.

Create SSH key using this tutorial – https://help.github.com/articles/generating-ssh-keys

Now, I’m trying to push the files to the central respository, however although the files have been pushed I got the following errors:

error: unable to create directory for .git/refs/remotes/origin/develop

error: Cannot lock the ref ‘refs/remotes/origin/develop’.

Any idea why? Is this the correct setup so far?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:08:27+00:00Added an answer on June 14, 2026 at 8:08 pm

    “unable to create directory for .git/refs/remotes/origin/develop” means there is a permission issue to write the remote reference in your local repo initialized in /var/www/website/.

    In this question for instance, the OP had to do a sudo git push.
    sudo or chown are mentioned in “Problems with first upload to github“.

    On the remote side, as mentioned in “uploading a repository to github fails says “permission denied”“, make sure to add your public ssh key to your GitHub repo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to implement a REST client in PHP, and have previously been using
I started using a git repository in Xcode 4 without previously knowing git and
I have a repo that I've been using with GitHub. Previously, the repo had
I have deployed a PHP application on my tomcat server(Tomcat 6.0).Previously I was using
I'm developing a graph control in WPF. I have previously developed it using GDI
I have previously written user interfaces using .NET and Windows Forms. I'm about to
I am setting up a Git repository. I know you can add repositories using
I have a large number of projects setup in Git that were previously managed
Let's say I have a file f.txt under the git repository. The initial version
I have recently taken over a development project that has a Git repository linked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.