[GIT] Forking MP2 repository for development of new plugins (1 Viewer)

Vic Demented

Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    Next step should be following:
    Then I can step into skin creation. And I think I will make some comments on coding style and conventions ;)

    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...
     

    Vic Demented

    Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    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.
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,130
    1,630
    Dresden / Munich / Maastricht
    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:
    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:
    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:
    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:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    HTPCSourcer [Info] GIT Developer Discussions 0
    azzuro [solved] GIT Commit text to be captured by Jira MediaPortal 2 13
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 68
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe MP2 importing keyart instead of poster General 0
    Lichloathe Trakt for MP2 question General 7
    C Streaming/transcoding MP2 vs MP1? General 4
    P MP 2 - Request to add an additional TV series Filename protocal Feature Requests 0
    C Streaming to clients over Wifi. MP1 or MP2? Newcomers Forum 0
    CyberSimian MP2 synchronising of stoptime MediaPortal 1 Talk 5
    M Initial Setup MP2 (On Wndows 10) General 2
    R [solved] MP2 Client ist extrem langsam Allgemeines Support- und Diskussionsforum 5
    D [solved] EPG Buddy for MP2 - Does it work? General 5
    T Amazon und Netflix in MP2 - Wie? Allgemeines Support- und Diskussionsforum 6
    J [solved] How to in MP2 General 19
    M [fixed] [MP2-831] 12h time format shown in TV Guide with Swedish language settings Submit: Bug Reports 27
    Similar threads

























    Top Bottom