.gitconfig
[alias]
st = status
lg = log --oneline --all --decorate --graph
ad = add --all
br = branch -a
[color]
ui = true
git config --global core.autocrlf false
git checkout -b feature origin/feature
git branch -d [branch-name]
git remote add origin [repository url]
git push -u origin master
git clone origin-url .
the dir into which you're cloning must be empty
git commit --amend -m “New commit message”
git commit --amend --no-edit
// create stash item(will not stash untracked files!)
git stash save {"useful label goes here"}
// stash untracked files!
git stash save -u {"useful label goes here"}
// show list of stashed items
git stash list
// apply changes from a specific stashed item
git stash apply stash@{1}
// apply changes from the last stashed item and remove it from the stash list
git stash pop
git stash show
// remove the last stashed item from the stashed items list
git stash drop
// remove all stashed items from the stashed items list
git stash clear
// revert modified files to the last commit state
git reset --hard