I am using Visual studio 2022 for Git.
I have a 'master
' branch and, from master
branch, I created another 'feature
' branch.
Then I added 2 commits in feature
branch
Question 1: When I merge the 2 commits to '
master
' branch, then in history I can see only one merge commit in 'master
' branch.
When merging, why 2 commits are not showing, but only a merge commit?Question 2: I added a commit in
feature
branch and then merged to 'master
' branch.
Then later, I reverted this commit in 'master
' branch for temporarily taking a build.
Now when I try to merge thefeature
branch tomaster
branch for this commit to add tomaster
branch because of merging before, now no commits are showing to merge.
What would be the best practice to merge the commits again ?