I have this command:
git log --pretty="%D" -n 2962c2b8dbd4bf78d90f228527c3cb65c4cea3b0
Result is:
HEAD -> master
local_branch
... and many many many more lines are printed out by this command. Sometimes there are outher branch names
When i try:
git log --pretty="%D" -1 2962c2b8dbd4bf78d90f228527c3cb65c4cea3b0
This is the result (two empty lines):
How do I achieve that I get only the first "line", or the first branch name?
Why is the output of the first command so long? And why does the second command output 2 lines, though I limit it to just one line with -1?
I'm really desperate :(