SPICE | Git Basics - UMCST/SPICE-user-info GitHub Wiki

git clone

When you start working ALWAYS 'GIT PULL' FIRST!!!

------------- Add or Edit a file ------------

git add filename
git commit -m "commit message goes here"
git push

------------- Other useful stuff ------------

git rm <file>	# removes file from commit
git log 		# view changelog of tracked files
git status		# view tracking info

If you've edited a file, but want to pull and overwrite
	git reset --hard HEAD
	git pull
⚠️ **GitHub.com Fallback** ⚠️