Git config --global, status, add, commit -a -m, reset, log

git config --global user.name "Jeff"
git config --global user.email "loopduplicate@burningtoken.com"
git config --global color.diff auto
git config --global color.branch auto
git config --global color.status auto
 
# the above stuff gets added to ~/.gitconfig
 
# show the status of the repo
git status
 
#add all files to rep
git add .
 
#commit everything without having to add it and add a message
commit -a -m 'comment'
 
# reverts all adds to staging
git reset
 
# WARNING reverts all changes since last commit
git reset --hard
 
# show history
git log

Internal References

Article Type

General