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?

gitコマンド

Posted at

PUSHのためのSSH作成から!!

SSHキーの作成(メールアドレスはGitHubに登録してるやつ)

ssh-keygen -t edXXXXX -C "アドレス"

公開鍵の確認(↓この内容をGitHubにコピペして登録)

cat ~/.ssh/id_edXXXXX.pub

コミットまでの流れ

1. 新しいリポジトリに移動

cd /Users/パス

2. Git初期化(ローカル)

git init

3. すべてのファイルをステージング

git add .

4. コミット(メッセージを忘れずに!)

git commit -m "初回コミット"

5. リモートリポジトリを登録(間違いのないURLで!)

git remote add origin gitsshURL

6. 初回push(mainブランチで)

git push -u origin main

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?