2015年12月31日
摘要: 命令格式git show [options] …​实例a) 查看某次提交的信息$ git show b) 查看远程仓库的信息。git remote show originc) 查看 tag 信息。$ git show 更多http://git-scm.com/docs/git-show 阅读全文
posted @ 2015-12-31 17:18 huey2672 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 命令格式git pull [options] [ […​]]命令参数-q, --quiet 安静模式。-v, --verbose 详情模式。实例a)下载远程仓库的 master 分支,并与本地的当前仓库合并。$ git pull origin master更多http://git-scm.com... 阅读全文
posted @ 2015-12-31 16:07 huey2672 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 命令格式git fetch [] [ […​]]git fetch [] git fetch --multiple [] [( | )…​]git fetch --all []命令参数--dry-run 不执行任何操作,只显示将会发生什么。-v, --verbose 详情模式。实例a)下载远程... 阅读全文
posted @ 2015-12-31 15:51 huey2672 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 命令格式git remote [-v | --verbose]git remote add [-t ] [-m ] [-f] [--[no-]tags] [--mirror=] git remote rename git remote remove git remote set-head (-... 阅读全文
posted @ 2015-12-31 14:42 huey2672 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 命令格式git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=] [--repo=] [-f | --force] [--prune] [-v... 阅读全文
posted @ 2015-12-31 14:35 huey2672 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 命令参数git log [] [] [[\--] …​]命令参数--since=, --after= 显示自指定日期后的日志。--until=, --before= 显示在指定日期前的日志。实例a) 显示提交日志。$ git logb) 单行显示日志。$ git log --pretty=one... 阅读全文
posted @ 2015-12-31 13:43 huey2672 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 命令格式git merge [-n] [--stat] [--no-commit] [--squash] [--[no-]edit] [-s ] [-X ] [-S[]] [--[no-]rerere-autoupdate] [-m ] […​]git merge HEAD... 阅读全文
posted @ 2015-12-31 13:27 huey2672 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 命令格式git checkout [-q] [-f] [-m] []git checkout [-q] [-f] [-m] --detach []git checkout [-q] [-f] [-m] [--detach] git checkout [-q] [-f] [-m] [[-b|-B|--... 阅读全文
posted @ 2015-12-31 13:25 huey2672 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 命令格式git branch [--color[=] | --no-color] [-r | -a] [--list] [-v [--abbrev= | --no-abbrev]] [--column[=] | --no-column] [(--merged | ... 阅读全文
posted @ 2015-12-31 11:39 huey2672 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 命令格式git reset [-q] [] [--] …​git reset (--patch | -p) [] [--] […​]git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] []命令格式-- soft 回... 阅读全文
posted @ 2015-12-31 10:08 huey2672 阅读(418) 评论(0) 推荐(0) 编辑