私の理解から、これはあなたが持っているものです:
* commit 10 (master)
|
* commit 9
|
...
| * (origin/master)
* commit 1 |
|.------------^
*
あなたが求めているのは、新しいブランチで 1 ~ 10 のコミットを行うことだと思います。
これを行うには、ブランチ名でブランチにラベルを付けてから、master を origin/master が持っているものにリセットします。
そう:
git checkout master # your current latest set of changes (commit 10)
git branch feature # the name of your branch
git reset --hard origin/master # sets master to point to origin/master
git pull --rebase # updates master with origin/master
git checkout feature && git merge master # updates feature branch with what is on origin/master
これは次のようになります。
* commit 11 (feature) merge commit
|^------------.
* commit 10 |
| ...
...
| * (master, origin/master)
* commit 1 |
|.------------^
*
これはあなたがやりたいことですか?