如何获取 Git 命令的帮助
git 帮助 [-a|–all|-i|–info|-m|–man|-w|–web] [COMMAND]
示例:git 帮助 git
它会启动浏览器并显示 HTML 格式的帮助。
设置本地存储库并进行初始推送:
cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master
签出存储库
git clone git://github.com/schacon/grit.git
要将更改提交到本地存储库,只需添加即可,而不是提交。如果您想将本地分支/更改推送到远程存储库,只需执行下面的推送命令。
git add --all git commit --all git push
推送到存储库命令
git push <remote> <local branch name>:<remote branch to push into>
git push [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive-pack=]
[--repo=] [-f | --force] [--prune] [-v | --verbose] [-u | --set-upstream]
[--force-with-lease[=[:]]]
[--no-verify] [ […]]
更多命令可在以下链接中找到。
包含 20 个命令的日常 Git
https://www.kernel.org/pub/software/scm/git/docs/everyday.html
好的 Git 教程
教程1先制作-http://git-scm.com/docs/gittutorial
教程2秒制作 – http://git-scm.com/docs/gittutorial-2.html
进一步教程 – http://www.vogella.com/tutorials/Git/article.html#firstgit_repostatus

发表回复