6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

macでsvnを使う

Posted at

このご時世にSVNを使うことになった。
windowsのときは、TortoiseSVNを使用していたが、macにはない...
また、ろくなSVNクライアントもなさそう。

git-svnなるものがあったのでこちらを使用することにした。

Mac 最強の git/Mercurial クライアントである SourceTree では、git-svn した Subversion リポジトリもほとんどシームレス い扱うことができるようです。

git svn clone する

git svn clone https://<パス>

-s オプションをつけると、最後が /trunkとなる。(例:<パス>/trunk をclone使用とする。 trunkフォルダをcloneするつもりが無いならつけないほうがよい)

ファイルをコミットしたい

以下の手順でファイルをコミットできることを確認。
ファイル編集するごとに何故か git add が必要だったのはなぞ。

git add <追加したいファイル>
git commit -m "コメント"
git svn dcomit

最新ファイルを入手する

これでupdateされる

git svn rebase
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?