Below are some very basic git commands. Please see our department docs on using Swarthmore GitHub Enterprise for help using Swat GitHub for CS classes.
To turn the current directory into a local git repo:
git init           # initialize repo
git add .          # add all files to repo
git commit -a      # initial commitTo show the status of a repo:
git status         To see a log of all past commits:
git logBasic workflow:
edit or add a file to the repo
git status
git add edited_file
git commit -m "add commit message here"
git statusOther resources: