User Tools

Site Tools


coding:version_control:git-svn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
coding:version_control:git-svn [2008/11/30 14:38]
127.0.0.1 external edit
coding:version_control:git-svn [2012/08/15 13:23]
robm [Interacting with the local GIT archive]
Line 21: Line 21:
 | svn info | - | N/A for local GIT | | svn info | - | N/A for local GIT |
 | svn checkout | git clone | | | svn checkout | git clone | |
 +| svn cat | git show <COMMIT>:path/to/file.ext | Use ''HEAD^'' as <COMMIT> for SVN's ''PREV''
 +| svn status | git status | |
 ===== Interacting with a remote GIT archive ===== ===== Interacting with a remote GIT archive =====
 ^ SVN ^ GIT ^ Notes ^ ^ SVN ^ GIT ^ Notes ^
 | svn up | git pull {URL} | Must provide URL. Can create URL aliases, see "REMOTES" in ''man git-pull'' | | svn up | git pull {URL} | Must provide URL. Can create URL aliases, see "REMOTES" in ''man git-pull'' |
-| svn commit | git commit | | +| svn commit | git commit && git push Commits to the *local* branch, then publishes the commit to the remote (assuming you have permission to do so) 
-| svn log --limit={N} | Don't know yet:-|+| svn log --limit={N} | git log remotes/origin Where ''origin'' is the original branchUse ''git branch -r'' to see a list of remote branches |
 | svn blame | git blame | | | svn blame | git blame | |
 | svn info | git remote show origin | Assuming ''origin'' is your tracking branch | | svn info | git remote show origin | Assuming ''origin'' is your tracking branch |
 | svn checkout | git clone | | | svn checkout | git clone | |
  
coding/version_control/git-svn.txt · Last modified: 2013/08/20 22:52 (external edit)