Skip to content

Instantly share code, notes, and snippets.

@coisnepe
Last active April 25, 2018 17:15
Show Gist options
  • Save coisnepe/a2a9a99c7324c991db6871daf0ab5b3a to your computer and use it in GitHub Desktop.
Save coisnepe/a2a9a99c7324c991db6871daf0ab5b3a to your computer and use it in GitHub Desktop.
git log --pretty=format:"%h;%an;%ar;%s" app/controllers/admin/secretaryship_* > commits.csv

Upstream

Update a forked repo with the upstream repo

$ mkdir my_own_project
$ cd my_own_project
$ git init
$ git remote add upstream git@github.com:ORIGINAL_REPO_OWNER/ORIGINAL_REPO_NAME.git
$ git fetch upstream
$ git merge upstream/master

# update:
$ git fetch upstream
$ git pull upstream/master
$ git merge upstream/master

When a string first appeared

git log -S "larry.page@yahoo.fr" --source --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment