For a single file: git checkout path/to/file/to/revert
For all unstaged files: git checkout -- .
git ls-files --others --exclude-standard
/Users/[id]/.gitconfig
git config --list
git clone https://github.com/lifeofreilly/HTTPdLight.git
git pull
git remote -v
git status
git add bla.java
git commit -m "Test commit for new repository"
git push origin master
git checkout -b cleanup
git log origin/master..HEAD
git checkout master git merge cleanup git branch -d cleanup git push origin master
git checkout 3.1 git pull
git add public_html/*.html
git branch
- git checkout -b mybranchname
- vi
- git add
- git commit -m ""
- git checkout master
- git merge mybranchname -m ""
- git push
- git branch -d mybranchname (optional delete)
- git checkout -b feature_branch_name
- git push -u origin feature_branch_name
git diff HEAD file
git branch
git branch -a
git branch -r
git checkout -b mybranchname
git vi
git add
git commit -m ""
git merge master
git push -u origin mybranchname
In Web UI initiate pull request
git log origin/master..HEAD
git diff origin/master..HEAD
git commit --amend -m "New commit message"
git diff master my_local_branch
git log --pretty=oneline