This lesson covers the basics of git for version control.
This lesson is for the first day of the MSSE bootcamp (Chem 280).
To ake a commit ("Version" or "Checkpoint") of your files, follow this procedure:
- Make changes to your project that you'd like to keep.
- When you have your changes, tell
gityour are ready to create a checkpoint of file using thegit add FILENAMEcommand. - Create a checkpoint of your file using
git commit -m "message about what you did".
Features should be developed on branches. To create and switch to a branch, use the command
git switch -c NEW_BRANCH_NAME
To switch to an existing branch, use
git switch BRANCH_NAME