Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
guide:git [2010/08/16 23:38] – add link to download snapshot from github squentin | guide:git [2013/04/03 06:29] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 81: | Line 81: | ||
Do not use rebase on branch you published, as rebase rewrite the history of the branch, use merge instead. | Do not use rebase on branch you published, as rebase rewrite the history of the branch, use merge instead. | ||
+ | ===== 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 " |