Let's say example A is the main branch, B branch is created from A C is created from B and D is created from C So how to know parent branches for which branch is the parent branch? Anyone, please let me know
git log --pretty=format:"%H %P" -n 1 This command will show the commit hash (%H) and its parent commit hashes (%P). If the branch has multiple parents there will be multiple parent hashes. then git branch --contains I hope it answers your questions.
Clear and concise as always.
Good overview 👍
Great stuff! I like the insights on how teams work with it !
Wow thanks nick this is so helpful
Let's say example A is the main branch, B branch is created from A C is created from B and D is created from C
So how to know parent branches for which branch is the parent branch?
Anyone, please let me know
git log --pretty=format:"%H %P" -n 1
This command will show the commit hash (%H) and its parent commit hashes (%P). If the branch has multiple parents there will be multiple parent hashes.
then
git branch --contains
I hope it answers your questions.
First to commeeeent ❤❤❤❤🎉🎉🎉🎉
I love all your videos Nick, they've literally taken me by hand and walking me through my ios journey.