Skip to content

Instantly share code, notes, and snippets.

@Geri-Borbas
Created August 22, 2018 22:15
Show Gist options
  • Select an option

  • Save Geri-Borbas/0f0eda0dea9d25fd7607a10bbe95c813 to your computer and use it in GitHub Desktop.

Select an option

Save Geri-Borbas/0f0eda0dea9d25fd7607a10bbe95c813 to your computer and use it in GitHub Desktop.
Get the first slice of the commit message string (using space as a delimiter).
git log -1 --pretty=%B | cut -d ' - ' -f 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment