Skip to content

Instantly share code, notes, and snippets.

@dazza-codes
Created August 31, 2016 17:30
Show Gist options
  • Save dazza-codes/7714b46bf5f6cf26055521a570b54a69 to your computer and use it in GitHub Desktop.
Save dazza-codes/7714b46bf5f6cf26055521a570b54a69 to your computer and use it in GitHub Desktop.
Useful GIT Functions
#!/bin/bash
# Useful GIT Functions
#### Cutting a release with a log of recent pull requests merged to master
git_release_commits ()
{
git pull
git fetch -p
git log --oneline --decorate | grep 'Merge pull request' | head -n25
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment