LoginSignup
5
5

More than 5 years have passed since last update.

git リポジトリを置いておくためのユーザを作る

Last updated at Posted at 2012-03-16
sudo groupadd -r git
sudo useradd -r -g git -m -d /home/git -s /bin/sh git
add-your-public-key-to /home/git/.ssh/authorized_keys

# Login via SSH as the user "git" has no password and cannot login as usual
ssh git@localhost
git init --bare --shared repo.git
exit

cd ~/path/to/repo
git push git@localhost:repo.git master
5
5
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
5
5