Last active
August 29, 2015 14:14
-
-
Save ko31/b5632a068c3acd17ffdf to your computer and use it in GitHub Desktop.
【svn】svnでリポジトリ作成する手順
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
リポジトリ:/opt/repos/projectname | |
ソース:/var/www/html | |
# リポジトリ作成 | |
$ mkdir /opt/repos/projectname | |
$ svnadmin create /opt/repos/projectname | |
$ svn mkdir -m "created default directory" ¥ | |
file:///opt/repos/projectname/trunk ¥ | |
file:///opt/repos/projectname/branches ¥ | |
file:///opt/repos/projectname/tags | |
# ソースは別ディレクトリに退避、新しいディレクトリにチェックアウトする。退避したソースを戻してインポート。 | |
$ cp -Rp /var/www/html /var/www/html_ | |
$ cd /var/www/html | |
$ rm -rf ./* | |
$ svn co file:///opt/repos/projectname/trunk . | |
$ cp -Rp /var/www/html_/* ./ | |
$ svn import -m 'made initial import' . file:///opt/repos/projectname/trunk | |
# リポジトリ管理したくないディレクトリを無視設定してコミット | |
$ svn propset -R 'svn:ignore' '*' /path/to/ignoredirectory | |
$ svn ci -m 'set ignore directory' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment