LoginSignup
0

More than 3 years have passed since last update.

gitでローカルディレクトリをリポジトリにする

Last updated at Posted at 2019-07-16

リポジトリを作成する

cd '/Volumes/【中略】/'
mkdir abc.git
cd abc.git
git init --bare

作業用ディレクトリで push, pull する準備をする

mkdir abc
cd abc
git init
git remote add origin '/Volumes/【中略】/abc.git'
git push --set-upstream origin master

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
0