Git bash assignment

Alex McClymont

1. When should you use git for a project?

2. What types of files should be saved or not saved to a git repository?

Saved: project code, data files, readme descriptions

Not saved: sensitive information including passwords, anything that should not be publicly accessible

3. What are the commands to undo a commit?

git checkout HEAD ~1

OR

git checkout {commit identifier}

OR

git revert {commit identifier}

4. How do you fix being in a detached HEAD state?

git checkout master

5a. Pros and cons of using git for your research project

5b: Pros and cons of hosting a project in a public repository

5c: Pros and cons of hosting a project in a private repository