参考自廖雪峰Git教程
CREATE
LOCAL CHANGES
-
git status : Changed files in your working directory
-
git diff : Changes to tracked files
-
git add . : Add all current changes to the next commit
-
git add filename : Add some changes in file to the next commit
-
git commit -a : Commit all local changes in tracked files
-
git commit : Commit previously storaged changes
COMMIT HISTORY
-
git log : Show all commits, starting with newest
-
git log -p filename : Show changes over time for a specific file
-
git blame file : Who changed what and when in file