Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull requestが上手くできません #31

Open
yaguchibinari opened this issue Aug 2, 2021 · 4 comments
Open

pull requestが上手くできません #31

yaguchibinari opened this issue Aug 2, 2021 · 4 comments

Comments

@yaguchibinari
Copy link
Contributor

yaguchibinari commented Aug 2, 2021

知能機械情報学専攻の内田智也です。
現在課題の提出のためにpull requestをしようとしているのですが、上手くできません。
これまでpull requestをやったことがなく他のissueを参照したのですがつまずいています。

@YoheiKakiuchi
Copy link
Contributor

現在、手元にlecture2021/mainブランチに追加されたコミットがあるとします。
( コミットは git commit -m 'commit message' files_to_be_committed など)

ローカルにブランチを作る
git checkout -b branch_name

リモートレポジトリを追加
git remote add my-repo https://github.com/yaguchibinari/lecture2021.git

自身のリモートレポジトリにローカルのブランチをpushする(ここで、手元PCで作ったbranchがgithubで見られるようになる)
git push my-repo branch_name

githubのhttps://github.com/yaguchibinari/lecture2021.gitのwebページで、
branch_name のブランチをpull requestする(ボタンが出てたりするので、それを押すことでできる)

(これが参考になったりするでしょうか? https://www.atmarkit.co.jp/ait/articles/1702/27/news022.html

https://github.com/yaguchibinari/lecture2021/branches を見る限り、ブランチは作られていないようです。
この説明で、分からないことがあったら聞いてください。

@yaguchibinari
Copy link
Contributor Author

ありがとうございます。
どこで問題が起きているか不明なので、初めからもう一度やってみます。

@yaguchibinari
Copy link
Contributor Author

pull requestまでしてみたのですが、問題ないでしょうか。

@yaguchibinari
Copy link
Contributor Author

mergeされたことを確認しました。
教えていただきありがとうございます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants