home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
[GIT] Forking MP2 repository for development of new plugins
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="chefkoch" data-source="post: 973920" data-attributes="member: 10438"><p>Infos and guide move to wiki: <a href="http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git/Forking_MP2" target="_blank">http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git/Forking_MP2</a></p><p> </p><p><s>So I guess you cloned your repository before like morpheus suggested and explained in wiki: <a href="http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git" target="_blank">http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git</a></s></p><p><s>[code]git.exe clone --progress -v "git@github.com:VicDemented/MediaPortal-2.git" "%path_to_wherever_you_want_to_have_it%\MediaPortal-2"[/code]</s></p><p> </p><p><s>To switch to dev-branch directly while cloning, you also could use:</s></p><p><s>[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"[/code]</s></p><p> </p><p><s>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).</s></p><p> </p><p><s>When fetching I always select "Prune" to get rid of references to branches, which have already been deleted on the remote server (online git).</s></p><p><s>[code]git.exe fetch -v --progress --prune "VicDemented"[/code]</s></p><p><s>instead of VicDemented, might have to use "origin".</s></p><p> </p><p><s>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:</s></p><p><s>[ATTACH=full]123736[/ATTACH]</s></p><p> </p><p><s>Here is my menu when fetching latest online data:</s></p><p><s>[ATTACH=full]123737[/ATTACH]</s></p><p><s>Here is the window to switch branches:</s></p><p><s>Red = my local branches</s></p><p><s>blue = remote branches in my own fork</s></p><p><s>green = remote branches in MP2 official repo (origin)</s></p><p><s>yellow = remote branches in your fork</s></p><p><s>[ATTACH=full]123738[/ATTACH]</s></p><p><s>[ATTACH=full]123740[/ATTACH]</s></p></blockquote><p></p>
[QUOTE="chefkoch, post: 973920, member: 10438"] Infos and guide move to wiki: [url]http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git/Forking_MP2[/url] [S]So I guess you cloned your repository before like morpheus suggested and explained in wiki: [url]http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/Contribute/Development/2_Git[/url][/S] [S][code]git.exe clone --progress -v "git@github.com:VicDemented/MediaPortal-2.git" "%path_to_wherever_you_want_to_have_it%\MediaPortal-2"[/code][/S] [S]To switch to dev-branch directly while cloning, you also could use:[/S] [S][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"[/code][/S] [S]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).[/S] [S]When fetching I always select "Prune" to get rid of references to branches, which have already been deleted on the remote server (online git).[/S] [S][code]git.exe fetch -v --progress --prune "VicDemented"[/code][/S] [S]instead of VicDemented, might have to use "origin".[/S] [S]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:[/S] [S][ATTACH=full]123736[/ATTACH][/S] [S]Here is my menu when fetching latest online data:[/S] [S][ATTACH=full]123737[/ATTACH][/S] [S]Here is the window to switch branches:[/S] [S]Red = my local branches[/S] [S]blue = remote branches in my own fork[/S] [S]green = remote branches in MP2 official repo (origin)[/S] [S]yellow = remote branches in your fork[/S] [S][ATTACH=full]123738[/ATTACH][/S] [S][ATTACH=full]123740[/ATTACH][/S] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
[GIT] Forking MP2 repository for development of new plugins
Contact us
RSS
Top
Bottom