Skip to content

Instantly share code, notes, and snippets.

@ichikaway
Created May 10, 2010 11:11
Show Gist options
  • Save ichikaway/395930 to your computer and use it in GitHub Desktop.
Save ichikaway/395930 to your computer and use it in GitHub Desktop.
GitでSSHを使ってbackup用リモートリポジトリを作ってpush
リモートリポジトリ作成
mkdir ./repo/hoge.git
git --bare --git-dir=./repo/hoge.git init
ローカルリポジトリのgit remoteを追加
git remote add origin ssh://git@git.intranet/home/git/repo/hoge.git
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment