Course site for "Experimental Psychology Lab" 2019
mkdir my_first_gitcd my_first_git && git initmynotes.md to the directorygit statusgit add mynotes.mdgit status againgit commit -m "my first commit"git status againgit logmynotes_2.mdmynotes.md
git status
git diff mynotes.md to see changes between last commit & current versiongit diff mynotes.md againgit diff COMMIT-1 COMMIT-2 mynotes.md
git log)mynotes.md with git diff mynotes.md COMMIT-1 COMMIT-2 -- mynotes.mdgit log -p mynotes.md to get a full change history of file mynotes.mdmynotes.mdgit add mynotes.mdgit status (boring!)git reset mynotes.mdgit status againgit checkout mynotes.md to undo your recent local changesgit reset --hard to undo all local changesgit log --onelinegit checkout FIRST-COMMIT-ID to roll back complete to where you were in the beginninggit branch silly_trygit checkout silly_trymynotes.md
git commit -a -m "changes to a branch"git log --graph --oneline --all
git checkout mastergit merge silly_try
git commit -a -m "merged in branch silly_try"git log --graph --oneline --allmastermynotes.mdsilly_trymynotes.mdmastersilly_branch into master
git merge silly_branchmynotes.md and fix the conflict manuallygit remote add origin YOUR-REPO-URL
origin is the name for your remote repo