免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Migrate from svn to git | GitStack

Migrate from svn to git

Mon, Apr 2, 2012
Subversion was the most used versioning system until last year. A majority of new projects are now using git and most of the older but active project are now migrating from subversion to git.

This tutorial will show you how to migrate your subversion server (online hosted or using a software like visualsvn server) to a git server (GitStack).

The migration process has 4 steps :
1. Use git to checkout your svn repository
2. Clean your project from unnecessary files
3. Create a new remote git repository on GitStack
4. Push your repository to GitStack

Prerequisites :
-msysgit installed on a client computer
-GitStack installed on a remote computer

1. Use git to checkout your svn repository


We take as our svn repository example “fotoslide” which is a project randomly chosen on google code http://code.google.com/p/fotoslide/

Launch git bash (provided by msysgit)


Checkout your svn project on your client computer :
$ git svn clone http://fotoslide.googlecode.com/svn/ –no-metadata -s fotoslide

Git will download all the repository files and history. It might take a few minutes/hours depending of the size of your svn repository. The ‘–no-metadata’ parameter is used to remove unnecessary svn backward compatibility data (git-svn-id is not imported).



2. Clean your project from unnecessary files


Get into your project directory :
$ cd fotoslide

Convert weird tag branches to real git tags :
$ cp -Rf .git/refs/remotes/tags/* .git/refs/tags/
$ rm -Rf .git/refs/remotes/tags

Convert old svn branches to real git branches :
$ cp -Rf .git/refs/remotes/* .git/refs/heads/
$ rm -Rf .git/refs/remotes



3. Create a new remote git repository on GitStack


Launch GitStack on your server and create one user
Create a repository. We will name it fotoslide.
Add a user with read/write access to the repository.




4. Push your repository to GitStack


Add the git server as a remote server :
$ git remote add origin http://10.0.2.15/fotoslide.git

Push your code to the new server, including all the tags and branches :
$ git push origin –all



You have successfully migrated your repository from svn to git.

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
GIT版本控制 — GIT與SVN的相互轉(zhuǎn)換 (三)_git轉(zhuǎn)svn
建本地 repo server --- 超復(fù)雜型 -- 備份
git bundle手冊(cè)
Git pull 小結(jié)
SVN數(shù)據(jù)遷移到Git筆記
Git 使用手冊(cè) | TKG
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服