Skip to content

Instantly share code, notes, and snippets.

to paste text into the git bash use the keyboard shortcut, Insert
//add all files (new or modified) and commit in one command
git commit --amend -m 'new commit message'
//add deleted files which are not staged - this will add all modified files
git add -A
//show last 5 commits on one line
git log --pretty=oneline --max-count=5