Changes for page Getting Started with Git
Last modified by Bastian Triller on 2013/05/21 17:24
From version 128.1
edited by Kieran Kelleher
on 2011/03/21 15:08
on 2011/03/21 15:08
Change comment:
There is no comment for this version
To version 129.1
edited by Kieran Kelleher
on 2011/03/21 15:14
on 2011/03/21 15:14
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,10 +35,17 @@ 35 35 (This kind of repeats some of the previous section, but that's on purpose so we can condition you brain to start using git right now ;-) ) 36 36 Even while you are working with svn repositories, you can start learning and taking advantage of git right now by making your local svn working copy an actual local git repository. The idea is to use the appropriate ignore feature of each SCM system to ignore the hidden files of the other system. The concept is described here: 37 37 38 -[[git+svn Working Protocol>>http://www.lostechies.com/blogs/derickbailey/archive/2010/02/03/branch-per-feature-how-i-manage-subversion-with-git-branches.aspx]] 38 +[[**git+svn** Working Protocol>>http://www.lostechies.com/blogs/derickbailey/archive/2010/02/03/branch-per-feature-how-i-manage-subversion-with-git-branches.aspx]] 39 39 40 -When you first learn about git and you google "git svn" you will learn about a command line tool git-svn which works directly with remote svn repos, however my advice is don't use git-svn. Use the git **+**svn approach outlined in above blog post instead.40 +When you first learn about git and you google "git svn" you will learn about a command line tool git-svn which works directly with remote svn repos, however my advice is don't use git-svn. Use the **git+svn** approach outlined in above blog post instead. 41 41 42 42 Once you start using git, it becomes addictive ....... you can never go back ...... really, it's that good ...... and it is not hard. 43 43 44 -For Eclipse setup when using git locally on svn working copies, just check out the entire svn branch on the command line, then LINK (import no copy) the projects you want in your workspace using the Subclipse import tool, and just do your git operations (status, staging, commit, diff, branching, checkouts, rebase and merge using the terminal). git on the terminal is efficient... honest. 44 +Some tips for Eclipse setup and general workflow when using git locally on svn working copies, 45 + 46 +* check out the entire svn branch on the command line, then LINK (import no copy) the projects you want in your workspace using the Subclipse import tool, and 47 +* Do your git operations (status, staging, commit, diff, branching, checkouts, rebase and merge using the terminal). git on the terminal is efficient... honest. 48 +* Do all your local work and cimmits on branches other than the master branch. 49 +* Switch to master branch to update from svn and commit those svn updates on the master branch. 50 +* Merge your working branch(es) with or rebase your working branch(es) from the master and just keep on working. 51 +* Switch to master branch before synchronizing with remote svn repo.