15. undoing things
git checkout -- [filename]
discarding changes
modified unmodified
git reset HEAD [filename]
unstaging files
git reset HEAD
staged modified
16. undoing things
git commit --amend
changing the last commit
git reset --soft HEAD
undoing the last commit
unmodified staged
git reset --hard HEAD discard all changes in last commit
26. setting up for Github
sign up for a Github account
generate SSH key (if your machine
currently doesn’t have one)
add your SSH key to your Github account
29. managing remotes
git remote add [remote name] [remote URL]
creating a new remote
git remote rm [remote name]
deleting a remote
30. data transfer to/from a remote
git push [remote name] [remote branch name]
sending data to a remote
git pull [remote name] [remote branch name]
getting data from a remote