プログラミングを学び始めて・・・78日目 初投稿
※自分用に記録しています間違えている可能性があります
- GitHubでリモートリポジトリを作成
- VScodeを開く
- Clone Git RepositoryでGItHubに繋いで直接リポジトリに接続
- ローカルリポジトリ保存場所を聞かれるので好みの場所に保存
- 新規ファイル(index.htmlなど)を作成しなどで簡易入力
- git branch /*ブランチの位置確認
- git checkout -b ブランチ名 /*プルリクエスト用ブランチ作成
- git branch /*ブランチの位置確認
- git add . /*変更をインデックスに登録
- git commit -m "コメント" /*変更をプルリクエスト用ブランチにコミット
- git push --set-upstream origin プルリクエスト用ブランチ名)
/*プルリクエスト用ブランチをリモートリポジトリにpush - ターミナルの左端に黄色のお知らせマークが出るのでクリック
- GitHubのPull request画面に遷移するのでPullrequestする
- 自分1人ならMarge pull request して完了
いろんな方法があると思うけど、わたし的な方法はこれかな
次回からも上手くできるといいな
また問題が起きたら改善しよう!