Changes between Version 8 and Version 9 of GitRepo
- Timestamp:
- 11/17/2011 06:42:21 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitRepo
v8 v9 1 1 = Git Source Repository = 2 2 3 Deluge's source code is always available through our [http://git.deluge-torrent.org/ git repository].3 Deluge's source code is always available through our [http://git.deluge-torrent.org/ Git repository]. 4 4 5 To get a copy of the code, you will need to clone it from the repository .5 To get a copy of the code, you will need to clone it from the repository then see the [wiki:'Installing/Source' Installation Guide]. 6 6 7 Once you clone the code, you may want to see ['Installing/Source'].7 For more in depth-git usage see GitTips and GitCommit. 8 8 9 9 == Initial Clone == 10 10 11 The first step is to clone our git repo :11 The first step is to clone our git repos: 12 12 13 13 {{{ … … 15 15 }}} 16 16 17 This will create a deluge/ directory with a copy of the repo.17 This will create a ''deluge'' directory with a copy of the repo so if you change into this directory you can start using git commands. 18 18 19 19 == Selecting Branch == 20 20 21 There are multiple branches or tags that you can choose from, but the main two will be the current stable branch and the development branch. You can always browse the entire repository [http://git.deluge-torrent.org/ here].21 There are multiple branches or tags that you can choose from, but the main two are the current stable branch and the development branch. 22 22 23 List the branches :23 List the branches, including remote branches: 24 24 25 25 {{{ 26 cd deluge27 26 git branch -a 28 27 }}} 29 28 30 If you want a different branch then the currently selected (master) then you will need to create a local branch and switch to it.29 If you want to use a different branch than the default selected (''master'') then you will need to create a local copy of the remote branch. In this example we create branch '1.3-stable' as a local copy of the remote branch 'origin/1.3-stable' and switch to it: 31 30 32 '''Stable:'''33 31 {{{ 34 32 git checkout -b 1.3-stable origin/1.3-stable 35 33 }}} 36 34 37 '''Development:''' 35 To switch between your local branches use the following commands: 36 37 '''Development:''' 38 38 {{{ 39 39 git checkout master 40 40 }}} 41 42 '''Stable:''' 43 {{{ 44 git checkout 1.3-stable 45 }}} 46 47 Either of these commands will show the current branch you are using: 48 49 {{{ 50 git branch 51 git status 52 }}} 53 41 54 42 55 == Updating ==