1、克隆远程代码库 git clone
qiaozhiguang@XSLUser[master*]$git clone -help
usage: git clone [] [--] []
-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recursive initialize submodules in the clone
--recurse-submodules initialize submodules in the clone
--template
directory from which templates will be used
--reference reference repository
--dissociate use --reference only while cloning
-o, --origin use instead of 'origin' to track upstream
-b, --branch
checkout instead of the remote's HEAD
-u, --upload-pack
path to git-upload-pack on the remote
--depth create a shallow clone of that depth
--single-branch clone only one branch, HEAD or --branch
--separate-git-dir
separate git dir from working tree
-c, --config
set config inside the new repository
2、创建本地代码仓库 git init
qiaozhiguang@XSLUser[master*]$git init -help
usage: git init [-q | --quiet] [--bare] [--template=] [--shared[=]] []
--template
directory from which templates will be used
--bare create a bare repository
--shared[=]
specify that the git repository is to be shared amongst several users
-q, --quiet be quiet
--separate-git-dir
separate git dir from working tree
qiaozhiguang@XSLUser[master*]$git add -help
usage: git add [] [--] ...
-n, --dry-run dry run
-v, --verbose be verbose
-i, --interactive interactive picking
-p, --patch select hunks interactively
-e, --edit edit current diff and apply
-f, --force allow adding otherwise ignored files
-u, --update update tracked files
-N, --intent-to-add record only the fact that the path will be added later
-A, --all add changes from all tracked and untracked files
--ignore-removal ignore paths removed in the working tree (same as --no-all)
--refresh don't add, only refresh the index
--ignore-errors just skip files which cannot be added because of errors
--ignore-missing check if - even missing - files are ignored in dry run
qiaozhiguang@XSLUser[master*]$git tag -help
usage: git tag [-a | -s | -u ] [-f] [-m | -F ] []
or: git tag -d ...
or: git tag -l [-n[]] [--contains ] [--points-at