0
1

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 5 years have passed since last update.

Gitサーバー初期設定

Last updated at Posted at 2019-07-07

1.Gitサーバーにて

  1. gitディレクトリ作成
  • フォルダ名.git
  1. bare repositry 設定で初期化
  • git init --bare

2.ローカルにて

  1. local repositry設置
  • mkdir [folder]
  1. local repositryでinit
  • git init
  1. リモートリポジトリ設定
  • コマンド例 -> git remote add [alias] [user]@[host]:[dir path]
  • 削除 -> git remote rm origin
  1. first push
  • readmeファイル等を作ってpush
  • エラー時には、サーバー側の権限、sshを確認

3.Gitサーバーにて

  1. logコマンドで確認
  • git log
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?