Git/log: Difference between revisions

Add shortlog
Add example of --cherry-pick
 
Line 304: Line 304:


<code>git shortlog  nasa/main...origin/REL1_43 --cherry-pick --right-only</code>
<code>git shortlog  nasa/main...origin/REL1_43 --cherry-pick --right-only</code>
== Cherry on top ==
By using the --cherry-pick option with --right-only, we can omit equivalent commits that appear on both sides.
<syntaxhighlight lang="bash">
git log --graph --full-history nasa/main...origin/REL1_43 --color --date=short --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%ad %s" --cherry-pick --right-only
</syntaxhighlight>
[[Category:Best Practices]]
[[Category:Best Practices]]
[[Category:Release Engineering]]
[[Category:Release Engineering]]
[[Category:GitOps]]
[[Category:GitOps]]
[[Category:DevOps]]
[[Category:DevOps]]