Git Cheatsheet
Commands I often forget
-
Setting remote
git remote set-url origin -
Stash specific file
git stash -- filename1 [filename2..] -
Reset your branch from remote
git fetch git reset --hard origin/master -
Renaming current branch
git branch -m 'new_branch_name' -
Undoing the last commit
git reset --soft HEAD~ -
Setting config values
git config user.name "Norly Canarias"git config user.email "canariasnorly@gmail.com"