Skip to content

Instantly share code, notes, and snippets.

@remylavergne
Last active February 13, 2020 08:35
Show Gist options
  • Save remylavergne/49290663827de1e1fa368717eca86239 to your computer and use it in GitHub Desktop.
Save remylavergne/49290663827de1e1fa368717eca86239 to your computer and use it in GitHub Desktop.
[Git] Shortcuts and useful commands #cli

Git shortcuts and commands

Search commit from specific user

git log --date=short --branches --since=3.months.ago --author=xyz

Search all commit from comment

git log --all --grep='maRecherche'

Check if branch is already merged

$ git checkout develop
$ git branch --contains <branch_name> // e.g git branch --contains feature/FEAT-05#upload-picture

// If branch appears in list => already merged

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment