This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.name "username" | |
git config --global user.email "email" | |
git log #shows all commits for current repo | |
git ls-files #shows all file that git tracks | |
git commit -am #adds files to staging and commits with message | |
git reset HEAD <filename> #unstages (undos) file from staging area | |
git checkout --<filename> #reset back to the last commit | |
git config --global --list #lists all configurations | |
git add -u #updates files when renaming/deleting | |
git checkout -b <branchname> #creates and switches to new branch |