Open saori-loveup opened 1 month ago
最初のプッシュの際に-u
オプションを付けることでアップストリームブランチが設定されていることを確認
$ git push -u origin branch-addBranchPractice
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 12 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 395 bytes | 395.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote:
remote: Create a pull request for 'branch-addBranchPractice' on GitHub by visiting:
remote: https://github.com/saori-loveup/git-practice/pull/new/branch-addBranchPractice
remote:
To https://github.com/saori-loveup/git-practice.git
* [new branch] branch-addBranchPractice -> branch-addBranchPractice
branch 'branch-addBranchPractice' set up to track 'origin/branch-addBranchPractice'.
$ git branch -vv
* branch-addBranchPractice d7d3d26 [origin/branch-addBranchPractice] #2 ブランチ作成練習でファイルを追加
branch-margePractice 0e51cae [origin/branch-margePractice] #1 マージ練習用にファイルを追加
develop 68ecbd3 [origin/develop] Merge pull request #2 from saori-loveup/branch-margePractice
main aa0e8d9 [origin/main] cloneした環境での作業のテスト
1 の練習の際に、ブランチを作成したが問題があったため、新しくブランチを作成する流れを再度やり直してみる
1でのブランチ作成時の手順
$ git push origin branch-margePractice
でプッシュorigin/branch-margePractice
ブランチが作成される問題点