Related
Git Branching Strategies
CheatSheet
Check Git Configurations
git config --global --listgit config --local --listgit config --system --list
Get Remote Origin Url
git config --get remote.origin.url
Reference for Common Challenge and Solutions
Solving Git Ignoring GitIgnore
git rm -r --cached .git add .git commit -m "fixed untracked files"
Revert a Committed Change with reset HEAD
Go back to HEAD
git reset --hard HEAD
Go back to commit before HEAD
git reset --hard HEAD^git reset --hard HEAD~1
Go back two commits before HEAD
git reset --hard HEAD~2
Delete Local and Remote Branches
// delete branch locallygit branch -d localBranchName// delete branch remotelygit push origin --delete remoteBranchName
Multi User Challenge
git credential --help
CheatSheet
Merge Priority
theirs
or ours
git merge --strategy-option theirs <feature-branch> staging
git merge -X theirs staging <bug-fix>