LoginSignup
6
7

More than 3 years have passed since last update.

Github Desktopの使い方

Posted at

背景

自分の備忘録として記載してます。

手順

1.左上の「Current Repository」→「Add」→「Add Existing Repository」でアプリを選択。
 「Add Repository」をクリック。
※クリック出来ない場合は、ターミナルで、git initする。

2.全ファイルを選択しコミットする。

3.「Publish Branch」でプッシュする。
 ※モーダルが表示されるため入力し、リモートリポジトリを作成する。

4.「Current Branch」→「New Branch」→トピックブランチ作成。
 ※ブランチが切り替えされているか確認

5.ターミナルで、git commit --allow-empty -m 'create pull request' で空のコミットをする。
 ※ブランチ作成後はコミットをしていないため。

6.「Publish Branch」でプッシュする。

7.「Create Pull Request」をクリックする。

8.ブラウザが起動してプルリクエスト作成画面になるので入力する。

9.[WIP]を外してURL確認後、レビュー依頼。

10.修正等完了し、LGTMを貰ったら「Marge Pull Request」をクリックしてマージする。

11.マージ完了後、「Delete branch」でブランチを削除する。

12.ブランチを切り替えし、「Fetch origin」→「Pull origin」でプルする。

6
7
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
6
7