Git Goin For Newbs
Wrote this up for my partner, taking intro to HTML & CSS at School of Visual Concepts. You don't have to be a Git master to leverage it for your projects. git init freely!
Enough Git to Get Going
If you are accessing one that already exists
git cloneIf you need to start a new one
git initOnce you have it, check what is up with it
git statusIf you have stuff that needs to be added
git add *If you have changes that you don't want to keep but you want to save
git stashIf you have changes you want to keep
git commit -m "Do a message"If you want to see what the difference is on a file
git diffTo get new commits from the remote
git pullTo push your new commits to the remote
git pushTo see your commit log
git log
We will worry about branching, cherry picking, reseting, merging later.