[GIT] Forking MP2 repository for development of new plugins

Discussion in 'Plugin Development' started by Vic Demented, March 12, 2013.

  1. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    United States of America United States of America

    Having some trouble figuring that part out (new to git). When I try and check out the 'dev' branch, it returns a not found error.



    Oh and comment away on the style and conventions...
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,017
    Likes Received:
    4,750
    Ratings:
    +6,796 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Last edited: March 12, 2013
  4. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    United States of America United States of America
    This is what the GIT client returns when I try and pull down the 'dev' branch

    git.exe pull -v --progress "https://github.com/VicDemented/MediaPortal-2/tree/dev/" master

    fatal: https://github.com/VicDemented/MediaPortal-2/tree/dev/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

    git did not exit cleanly (exit code 1) (2215 ms @ 3/12/2013 9:43:00 AM)[DOUBLEPOST=1363099491][/DOUBLEPOST]^^^ was posted before I read your reply...I will follow those instructions.
     
  5. chefkoch
    • Premium Supporter

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
    Infos and guide move to wiki: http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git/Forking_MP2

    So I guess you cloned your repository before like morpheus suggested and explained in wiki: http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git
    Code (Text):
    1. git.exe clone   --progress -v  "git@github.com:VicDemented/MediaPortal-2.git" "%path_to_wherever_you_want_to_have_it%\MediaPortal-2"


    To switch to dev-branch directly while cloning, you also could use:
    Code (Text):
    1. git.exe clone   --branch dev --progress -v  "git@github.com:VicDemented/MediaPortal-2.git" "%path_to_wherever_you_want_to_have_it%\MediaPortal-2"


    To update your local clone with latest data (commits, branches, ...), it is recommended to use fetch instead. (iirc, pull is something like fetch&merge, please google for more infos about it).

    When fetching I always select "Prune" to get rid of references to branches, which have already been deleted on the remote server (online git).
    Code (Text):
    1. git.exe fetch -v --progress --prune  "VicDemented"

    instead of VicDemented, might have to use "origin".

    In example I've set up one MediaPortal-2 clone and I am able to multiple remotes (repositories) for push/pull/fetch etc and I am able to switch between branches from our official MP2 repo to mine or to a branch of yours without any need to create a new clone: My setup in TortoiseGIT:
    20130312_164025.png

    Here is my menu when fetching latest online data:
    20130312_164357.png
    Here is the window to switch branches:
    Red = my local branches
    blue = remote branches in my own fork
    green = remote branches in MP2 official repo (origin)
    yellow = remote branches in your fork
    20130312_164543.png
    20130312_164635.png
     
    Last edited: April 10, 2013
    • Like Like x 2
  6. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    United States of America United States of America
    Yea...I was having some issues with my SSH keys. After I recreated them all is well
     
  7. chefkoch
    • Premium Supporter

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!