Gitサーバー「Gitea」でリポジトリを作成してpushする

Gitサーバー「Gitea」でリポジトリを作成してpushする

Gitサーバー「Gitea」でリポジトリを作成してpushするまでの手順を記述してます。

環境

  • OS ubuntu 20.04
  • gitea 1.12.0

リポジトリ作成

右上にある「+」ボタンから「新しいリポジトリ」を選択します。

リポジトリ名を入力して「リポジトリを作成」ボタンをクリックします。

リポジトリが作成されるので、pushしてみます。

表示通りに実行します。

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin http://192.168.xxx.xxx:3000/gitea/test.git
git push -u origin master

<出力結果>
Username for 'http://192.168.101.200:3000': gitea
Password for 'http://gitea@192.168.xxx.xxx:3000': 

pushされていることが確認できます。