- git pull
this is important if your previous working session was at a
different location (e.g., at home and you are now in the lab)
If you are starting with a new tutorial or project,
first create a directory for that tutorial, called tut1,
proj1, tut2, tut3, ..., and proj2; otherwise continue where
you stopped during your previous working session.
During each working session: it is useful to use git when
deleting or moving files that are in version control, for
- instead of mv old_name.txt new_name.txt, use
git mv old_name.txt new_name.txt
- instead of rm no_longer_needed.txt, use
git rm no_longer_needed.txt.
- git add . (or git add "all new file/dir names")
- git commit -m "Appropriate message"
- git push (unless it is your first commit for this repo, then use git push -u origin)
Always use descriptive commit messages and when you have
a full working version, create a tag, so that when you break
something you can easily find and checkout a previous