Git

HomePage | RecentChanges | Preferences

Git

https://stackoverflow.com/questions/1722807/how-to-convert-git-urls-to-http-urls

Bisect

https://github.com/therubymug/hitch to attribute commits when pairing

http://collectiveidea.com/blog/archives/2016/04/04/multiple-personalities-in-git/

To investigate...

git log --walk-reflogs --grep='interesting text'

How to undo and fix a commit http://stackoverflow.com/questions/927358/undo-the-last-git-commit

How to change a remote url https://help.github.com/articles/changing-a-remote-s-url/

Configuration

http://stackoverflow.com/questions/2183900/how-do-i-prevent-git-diff-from-using-a-pager

  git config --global pager.diff false

Tools

GitHub 2FA

Squashing Commits

git status / add / commit new work
git log  # count how many commits to squash together
git rebase -i HEAD~2
# s/pick/squash for the commits to merge into the one above, :wq to save
# edit the commit message and :wq to save
git push --force 
#or
git push --force --set-upstream origin [branchname]

GitRecipes

GitHub BitBucket?


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited December 31, 2017 3:40 am by 133-94-98-198.dsl.wavetel.us (diff)
Search: