| Commonly Used:
|
|
git clone $git_repo_url
|
get the copy of source code
|
|
git config --list
|
To view all users
|
|
git status
|
info about changed files
|
|
git log
|
status history
|
|
git diff
|
whats changed in local files, Won't report added files
|
|
git diff --cached
|
what is about to be committed
|
|
git add
|
add the files to commit list
|
|
git reset -- $file
|
remove the added files from commit list
|
|
git commit -a
|
commit the added files to repository, will open editor for adding comment
|
|
git push origin master
|
push the committed changed to public repository
|
|
git push $git_repo_url
|
push the committed changed to public repository
|