-- 检查当前branch $ git branch
-- 本地仓库创建新的branch $ git branch new_branch_name
-- 本地仓库换到其他branch上工作 $ git checkout branch_name
-- 远程仓库下载到本地仓库并转到新的branch继续工作 $ git checkout -b branch_name origin/branch_name
-- 本地仓库加入新的文件 $ git add .
-- 本地仓库commit全部修改 $ git commit -a -m "....."
-- 本地仓库推送此branch到远程仓库一个branch $ git push origin branch_name
-- 图形界面观看远程仓库内容 $ gitk --all
-- commit完打tag $ git tag 0.0.1 -m "....."
-- 打完tag把这一个tag的所有内容推送到远程仓库的tags库里 $ git push origin --tags
-- 查看git日志 $ git log
-- 查看当前工作环境里.git对应的远端仓库(push或者fetch需要的)的地址 $ git remote -v
-- 修改远端仓库的地址 $ git remote set-url origin "www.xxxxx.com"