Branch from master branch
git checkout -b feature-abc
# update several times on this feature branch.
git add ...; git commit ... ; git push ...
Now I'd like to know how to get its parent branch name (should be master branch) and which latest commit I checked out before.
Maybe I merged from master branch several times, I need know the latest commit hash id from its parent branch.
master branch
1 -> 2 -> 3 -> 4 -> 5->
| |
|-> 1 -> ---> 2
feature-abc
So currently I am at feature branch (2), how I get the commit hash of 4?
What commands I can run to get these information?