15
13

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 5 years have passed since last update.

GitHubでforkしないで同一リポジトリ内でブランチ作ってpull requestのメモ

Posted at

同一リポジトリ内でのpull requestをしたので備忘録を作っておく
※リポジトリにPushできる権限ないといけないのでプライベートリポジトリの場合には注意ね

1.ローカルリポジトリにcloneして、ブランチ作って、編集してコミットして、githubにブランチをpushする

$ git clone リボジトリ
$ git checkout -b ブランチ名
~ ファイルの編集 ~ 
$ git commit -a -m 'コメント'
$ git push origin ブランチ名

2.GitHubでpull request作る

pushした後だと、リポジトリ開くと「Compare & pull request」が出るので、そこからpull requestが作れる

参考

15
13
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
15
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?