☰
Current Page
Main Menu
Home
Home
Editing
GitSvnNotes
Edit
Preview
h1
h2
h3
Keybinding
default
vim
emacs
Markup
Markdown
Plain Text
Pod
RDoc
reStructuredText
AsciiDoc
BibTeX
Creole
MediaWiki
Org-mode
Textile
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
--- title: GitSvnNotes --- git-svn setup tracking: * trunk as master * branches/$username/* for personal branches * tags # Clone git svn clone --username "$username" \ -T trunk -t tags -b "branches/$username" \ https://svn.example.com/repo # Config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [svn-remote "svn"] url = https://svn.example.com/repo fetch = $project/trunk:refs/remotes/trunk branches = $project/branches/$username/*:refs/remotes/* tags = $project/tags/*:refs/remotes/tags/* # Relocate * <http://joehalliwell.wordpress.com/2009/03/18/relocating-git-svn-checkouts/> 1. Using svn checkout HEAD from the <https://> repository. Cache your authentication credentials so git-svn can use them if necessary. This is important. 2. If there haven't been any commits since your last git-svn rebase make one now e.g. `touch kick; svn add kick; svn commit -m "Kicking git-svn"`. This is important. 3. Now, in your git-svn checkout edit .git/config. In the svn section, comment out the old url entry (hash or semicolon are valid) and add a new one. 4. `git-svn fetch` to fetch a new revision from the new repository 5. In .git/config comment out the new url entry and restore the old one. 6. `git-svn rebase -l` to perform a local rebase 7. In .git/config comment out the old url entry and restore the new one. 8. Enjoy the fresh minty taste. <!-- vim: filetype=markdown -->
Uploading file...
Sidebar
# SideBar * [Home][1] * [Projects][2] * * * <!-- --> * [Code][3] * [Tech][4] * [Network][5] * [MediaCentre][6] * [UAV][7] * * * <!-- --> * [Travel][8] * [Music][9] * [Horse Riding][10] * [Study][11] * [Games][12] * [Other Activities][13] * * * <!-- --> * [Car][14] * [House][15] * [Watch][16] * [Clothing][17] * [Miscellany][18] * * * [1]: /Home [2]: /Projects [3]: /Code/Code [4]: /Tech/Tech [5]: /Network/Network [6]: /MediaCentre/MediaCentre [7]: /UAV/UAV [8]: /Travel/Travel [9]: /Music/Music [10]: /HorseRiding/HorseRiding [11]: /Study/Study [12]: /Games/Games [13]: /Do/Do [14]: /Car/Car [15]: /House/House [16]: /Watch/Watch [17]: /Clothing/Clothing [18]: /Miscellany/Miscellany <!-- vim: filetype=markdown -->
Edit message:
Cancel