Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| guide:git [2010/01/26 01:28] – squentin | guide:git [2022/05/23 01:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[http:// | [[http:// | ||
| And as gmusicbrowser doesn' | And as gmusicbrowser doesn' | ||
| + | |||
| + | gmusicbrowser git repositories : | ||
| + | * github : http:// | ||
| + | * sourceforge : https:// | ||
| + | |||
| + | this link will download a snapshot of the latest version : http:// | ||
| + | |||
| + | The repository contains 2 branches : | ||
| + | * master : the default branch, that currently contains v1.1.x | ||
| + | * v1.0.x | ||
| This mini-guide will show you some basic commands that you will need to follow gmusicbrowser development with git, visit the [[http:// | This mini-guide will show you some basic commands that you will need to follow gmusicbrowser development with git, visit the [[http:// | ||
| Line 52: | Line 62: | ||
| As this modifies po/*.po you'll need to follow with a | As this modifies po/*.po you'll need to follow with a | ||
| - | < | + | < |
| + | To revert the changes to po/*.po files, else git won't let you update the branch or change branch (to prevent the loss of these modifications). | ||
| ===== tips ===== | ===== tips ===== | ||
| Line 67: | Line 78: | ||
| git rebase master | git rebase master | ||
| </ | </ | ||
| - | if there are conflicts, you can resolve them manually or use | + | if there are conflicts, you can resolve them manually or use "'' |
| - | git rebase --abort | + | Do not use rebase on branch you published, as rebase rewrite the history of the branch, use merge instead. |
| - | to abort the rebase. | + | |
| + | ===== Cloning branches from other repository ===== | ||
| + | You can easily track branches from other repository, for example, to track ochosi' | ||
| + | < | ||
| + | git remote add ochosi git:// | ||
| + | git fetch ochosi | ||
| + | git checkout -b ochosi ochosi/ | ||
| + | </ | ||
| + | The first line creates a new remote named " | ||
| + | |||
| + | The second line fetches the remote' | ||
| + | the third creates a local branch " | ||
