-
Notifications
You must be signed in to change notification settings - Fork 0
nijinger/learngit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
git is a distributed version control system git is a free software under the GPL git has a mutable index called stage git tracks changes of files creating a branch is quick & simple this is 5 learn how to use branch commands: git config --global user.name jingli git config --global user.email [email protected] git add file1 [file2 ...] git commit -m "instrcutions of modification" git status // check which file(s) has been modified since last commit git diff file // compare file difference between current and last commit git diff HEAD -- file // comprae file difference between HEAD and current file git diff HEAD^ HEAD^^ -- file // compare file difference between HEAD^ and HEAD^^ git log // list all commit forward git reflog // list all log history(include backward) git reset --hard HEAD^ // HEAD^ last commit HEAD^^ the one befor last HEAD~100 git reset --hard (commit number) // only the first few digits are enough git reset HEAD file // unstage current stage for file git checkout -- file // discard changes in working area, relative to the stage area or the last commit (back to last add or last commit)
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published