Skip to content

Instantly share code, notes, and snippets.

View irakligeek's full-sized avatar

Irakli irakligeek

  • New York, NY
View GitHub Profile
@irakligeek
irakligeek / .txt
Created July 28, 2017 16:10
Useful Git commands
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