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?

More than 3 years have passed since last update.

ターミナルでのプルリクエスト

Posted at

ターミナルでのプルリクエストについて

GitHub Desktopではプルリクエストは作成したことはあるが、ターミナルでは操作したことがなかったので、自己学習の過程で学ぶことができたのでまとめてみました。

手順

  1. git clone でプルリクエストしたいファイルを取ってくる
  2. ターミナルのcdコマンドで操作したいファイルのディレクトリまで移動する
  3. git branch -a でブランチを確認する
  4. git checkout -b ブランチ名(" "はいらない)
  5. git add . でインデックスに追加する
  6. git commit -m "addに名前をつける"
  7. git push -u origin 4でつけた名前を入れる

感想

プルリクエストをするときもリポジトリを作成するのと同様にadd, commit, pushは変わらないが、初めにgit branchコマンドや、git checkoutコマンドが入ってくる。
実際にやってみるまでは少し複雑そうなイメージであったが、やってみるとそこまで難しくはなかった。

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?