0
0

GitHubリモートリポジトリの使い方

Last updated at Posted at 2024-02-15

内容

GitHubのリモートリポジトリでバージョン管理する方法を復習として残します。

to do

  1. リモートリポジトリの作成
  2. ssh keyのコピー
    (sshキーを取得している場合。取得方法は別の箇所で書くかもしれません。)
  3. ローカルリポジトリの作成:git init --initial-branch main(mainブランチで始まる状態で.gitを作成)
  4. コードを書く
  5. git add <ファイル名>ステージングを行う
  6. git commit -m "コミットメッセージ"
  7. git remote add <リモートリポジトリの名前> <URL>
  8. 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