LoginSignup
28
29

More than 5 years have passed since last update.

Dropboxに自分のプライベートGitを構築するツールを作ったよ

Last updated at Posted at 2016-02-06

背景

Githubにプライベートレポジトリを作ろうとすると、お金がかかるし、しかも7つまでしか作れない。無料のGitlabやBitbucketを使うには、醜悪なUIに慣れなくてはならない。そのどちらも嫌だったので、Dropboxにgitレポを作るツール "drit" を作りました。

使い方

現状、OSXオンリーです。たぶんUnix系なら使えると思いますが、動作確認はしていません。
公式サイトから、Dropboxのクライアントをインストールしてください。

npm i -g drit

Dropboxにdrit用のディレクトリを定義

drit init
# mkdir $HOME/Dropbox/Git

レポジトリを作成

In git project dir

drit create
# git init --bare  $HOME/Dropbox/Git/MyProject.git
# git remote add drit $HOME/Dropbox/Git/MyProject.git
git push drit master

レポジトリの一覧

drit ls
>> MyProject
>> MyProject2

レジトリからクローンしてくる

drit clone MyProject Project
# git clone $HOME/Dropbox/Git/MyProject.git Project

詳細はgithubをどうぞ
https://github.com/endotakashi1992/drit

28
29
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
28
29