Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to work from the development branch?
  • During a pull request I made for Fuel, WanWizard was trying to help me get working on the development branch. It still doesn't appear to be working, so maybe someone can help me? On github, I fork "core".
    Then I execute these commands on my local machine:
    git clone git@github.com:syntaqx/fuelphp-core.git
    cd fuelphp-core
    git remote add upstream git://github.com/fuel/core.git
    git fetch upstream
    git checkout -b develop But the final response I recieve from git bash, is:
    "Switched to new branch 'develop" Which leaves me to believe, it just branched the 'master' so I would have my own 'develop' branch to work with, not switching to the fuel-develop branch. What am I missing here? When I run "git checkout -b develop", It doesn't look like the code changes, which is why I have the initial thought above.
  • This issue is probably that fuel works with git submodules, but a fork is not aware of that (you fork a single repo). Start with a fresh install from the Fuel repo:
    git clone --recursive git://github.com/fuel/fuel.git
    

    Now you'll have swap the submodules you want to work on (core, docs, etc) for your own fork. There are two ways of doing that:
    The Q&D way is to delete the entire target directory (for example 'core') directory, and clone your fork of the corresponding repo. More work is to switch origins on the repo you have locally. http://blog.aplikacja.info/2010/08/switch-origin-of-your-git-repository/ explains how. Once your fork is cloned, make sure to switch it to the develop branch:
    cd fuel/core
    git checkout -b develop
    

    You can use 'git branch' to check if you're on the correct branch.
  • Anyone?
  • How to work on a forked project with git is not clear also for me.
    I've read Github Help but is not totally clear for me. If I'm working on my repo and during my work the forked project ( like official Fuel Core ) has some changes, what is the best way to update my repository with official changes without losing my job?? And after that how can I commit official changes to my repo maintaining commits authors? Sorry for the question but is important for me to understand this...
    And sorry for my english :-P

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion