git init |
Create a new local repository |
git status |
List all new or modified files in working directory |
git diff |
Show file differences that haven't been staged |
git add . |
Add all current changes to the next commit |
git commit |
Commit previously staged changes |
git commit -m "message" |
Annotate your commit |
git log |
Show all commits, starting with the newest |
git log |
clip |
git log --no-pager log > log.txt |
Write log to text file |
git log
|
Show commits for only this file, starting with the newest |
git log
|
Show commits for only this folder, starting with the newest |
git help [command] |
Get help on the command line |