backups + restores

What can you do in Git?

Getting start:

$ git init # init a git reposotory, happens whne you start a new project
$ git clone # clone an existing repo
# .git is the repository that stores all the version info

After the clone, you can:

$ git diff # tell you the differences of the changes that you made
# compares the most recent version to the changes that you make
$ git status # tells you the current status: which files are modified, uncommitted etc.

.gitignore has the information for what git is ignoring, or not keeping track of

Q: Which of your softwares' files should not be put under Git control?

Sh-style Globbing patterns

/abc*def matches only files at top leaves

!abc.o *.o will ignore every .o file but abc.o