0
0

More than 1 year has passed since last update.

新規PR作成時のGitHubとの連携初回手順 自分用 #駆け出しエンジニア

Last updated at Posted at 2023-02-05

プログラミングを学び始めて・・・78日目 初投稿
※自分用に記録しています間違えている可能性があります

  1. GitHubでリモートリポジトリを作成
  2. VScodeを開く
  3. Clone Git RepositoryでGItHubに繋いで直接リポジトリに接続
  4. ローカルリポジトリ保存場所を聞かれるので好みの場所に保存
  5. 新規ファイル(index.htmlなど)を作成しなどで簡易入力
  6. git branch /*ブランチの位置確認
  7. git checkout -b ブランチ名 /*プルリクエスト用ブランチ作成
  8. git branch /*ブランチの位置確認
  9. git add . /*変更をインデックスに登録
  10. git commit -m "コメント" /*変更をプルリクエスト用ブランチにコミット
  11. git push --set-upstream origin プルリクエスト用ブランチ名) 
    /*プルリクエスト用ブランチをリモートリポジトリにpush
  12. ターミナルの左端に黄色のお知らせマークが出るのでクリック
  13. GitHubのPull request画面に遷移するのでPullrequestする
  14. 自分1人ならMarge pull request して完了

いろんな方法があると思うけど、わたし的な方法はこれかな
次回からも上手くできるといいな
また問題が起きたら改善しよう!

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