0
0

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

git リポジトリの設定方法

Last updated at Posted at 2021-08-04

まず作業ディレクトに移動する

$cd //ディレクトリ名
$ git remote -v //現在のリモートURLを確認(fetchとpushが表示される)
$ git remote set-url origin (gitのSSH ) //新しいリモートURLに変更する

↓画像のの部分がSSH
image0-2.jpg

$ git init //作業ディレクトリにGitを使う宣言 

#ここからはプッシュ方法

$ git add .
$ git commit -m "メッセージ(何をしたか書く)" //コミット
$ git push origin  ディレクトリ名 //プッシュ

ssh key 求められる(?)
→求められたら公開鍵設定

$ less ~/.ssh/id_rsa.pub
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?