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 9016639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:02:54+00:00 2026-06-16T04:02:54+00:00

I’m developing a website with two other team members using the FuelPHP framework. I

  • 0

I’m developing a website with two other team members using the FuelPHP framework. I would like to use git to maintain the project, but I’m having some trouble wrapping my head around the configuration. When I use oil to install FuelPHP, it installs the main framework as well as several submodules from github. The .git/config file in the document root looks like this:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git://github.com/fuel/fuel.git
[branch "1.4/master"]
        remote = origin
        merge = refs/heads/1.4/master
[submodule "docs"]
        url = git://github.com/fuel/docs.git
[submodule "fuel/core"]
        url = git://github.com/fuel/core.git
[submodule "fuel/packages/auth"]
        url = git://github.com/fuel/auth.git
[submodule "fuel/packages/email"]
        url = git://github.com/fuel/email.git
[submodule "fuel/packages/oil"]
        url = git://github.com/fuel/oil.git
[submodule "fuel/packages/orm"]
        url = git://github.com/fuel/orm.git
[submodule "fuel/packages/parser"]
        url = git://github.com/fuel/parser.git

I have a bare repository setup on a remote server where I would like to maintain this project. I’d like to have the ability to pull updates from github for FuelPHP and it’s submodules, while also being able to push any changes to the bare repository so my team members and production server can pull from it. So far I’m running into a brick wall.

Here’s what I’ve done so far:

On the server:

$ mkdir websitename.git
$ cd websitename.git
$ git init --bare

On my local machine:

$ curl get.fuelphp.com/oil | sh
$ oil create websitename
$ cd websitename/
$ git remote add reponame ssh://git@example.com:2222/httpd/www/websitename.git
$ git push reponame 1.4/master

I get this response:

Counting objects: 14422, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4375/4375), done.
Writing objects: 100% (14422/14422), 2.20 MiB | 3.82 MiB/s, done.
Total 14422 (delta 9816), reused 14410 (delta 9810)
To ssh://haroldbr@haroldinc.com:2222/home/haroldbr/public_html/crude.git
 * [new branch]      1.4/master -> 1.4/master

Then, on the server again:

$ git clone -l --no-hardlinks /httpd/www/websitename.git /httpd/www/websitename

which gives me this error:

Cloning into 'websitename'...
done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Clearly I have a configuration problem, but I have no idea what it is. I want to be able to update all of the files in my remote repository using git. I envision it working something like:

On my local machine:

$ git pull origin 1.4/master
$ git push reponame --all

On the server:

$ cd websitename/
$ git pull

In a perfect world, this would pull all updates for FuelPHP and it’s packages from github and push all of those updates, along with any changes to the files in app/ or public/ to the bare repository. Is what I’m trying to do even possible? Do I need to setup repositories in app/ and public/ and maintain them separately? And what is wrong with my configuration that I can’t clone from the bare repo?

  • 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-16T04:02:56+00:00Added an answer on June 16, 2026 at 4:02 am

    There is a screencast on how to use git to maintain a FuelPHP website project here: http://blip.tv/fuelphp/creating-a-fuelphp-application-repository-5688973, but it doesn’t cover pushing to a bare repository.

    Assuming that you already have a new bare repository setup at ssh://example.com/path/to/project.git, you can follow these steps to setup your project. From your local machine:

    git clone -b 1.4/master --recursive git://github.com/fuel/fuel.git /path/to/project
    cd /path/to/project
    rm -R .git
    rm .gitmodules
    rm -R docs
    git init
    git submodule add git://github.com/fuel/core.git fuel/core
    git submodule add git://github.com/fuel/auth.git fuel/packages/auth
    git submodule add git://github.com/fuel/email.git fuel/packages/email
    git submodule add git://github.com/fuel/oil.git fuel/packages/oil
    git submodule add git://github.com/fuel/orm.git fuel/packages/orm
    git submodule add git://github.com/fuel/parser.git fuel/packages/parser
    git add .
    git commit -m "Initial commit"
    git remote add origin master ssh://example.com/path/to/project.git
    git push origin master
    

    You can then go to your production server and clone from the remote repository recursively to get your entire project:

    git clone --recursive ssh://example.com/path/to/project.git /path/to/production
    

    You’ll then be able to track changes to your project while maintaining the ability to:

    git submodule update --recursive
    

    which will keep you up to date with the latest FuelPHP packages.

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

Sidebar

Related Questions

I would like to run a str_replace or preg_replace which looks for certain words
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace

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.