Skip to content

Instantly share code, notes, and snippets.

@fzrhrs
Last active November 16, 2016 09:35
Show Gist options
  • Save fzrhrs/3c8e24d60272921fa455 to your computer and use it in GitHub Desktop.
Save fzrhrs/3c8e24d60272921fa455 to your computer and use it in GitHub Desktop.
Github
git show commithash
git log --author=name
git log --grep=word
(undo last commit)
git reset --soft HEAD~1
(ammend last commit message)
git commit --amend -m "New commit message"
show what files changed in a commit
git show --name-only {commit}
git push --force origin <BRANCH-NAME>
reset HEAD
git config --global alias.unstage 'reset HEAD --'
last commit
git config --global alias.last 'log -1 HEAD'
amend date last commit
http://stackoverflow.com/questions/454734/how-can-one-change-the-timestamp-of-an-old-commit-in-git
http ssl verify false
http.sslVerify false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment