Reply to thread

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"[/code]

 

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"[/code]

 

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"[/code]

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:

[ATTACH=full]123736[/ATTACH]

 

Here is my menu when fetching latest online data:

[ATTACH=full]123737[/ATTACH]

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

[ATTACH=full]123738[/ATTACH]

[ATTACH=full]123740[/ATTACH]


Top Bottom