This lesson covers the basics of git for version control
This lesson is for the first day of the MSSE bootcamp (Chem 280).
To make a commit ('version' or 'checkpoint') of your files, follow this procedure:
- Make changes to your project that you would like to keep.
- When you have your changes, tell
gityou are ready to create a checkpoint of the file using thegit add FILENAMEcommand. - Creat a checkpoint of your files 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