2015年12月30日
摘要: 命令格式git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch] [--quiet] [--] …​命令参数-f, --force 强制删除。-r 递归删除目录及其内容。-- cached 从暂存区移除文件,不再跟踪文件,工作区... 阅读全文
posted @ 2015-12-30 19:16 huey2672 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 命令格式git mv [-v] [-f] [-n] [-k] git mv [-v] [-f] [-n] [-k] ... 命令参数-f, --force 即使目标文件存在也强制重命名或移动文件。-k 当移动或重命名操作会导致错误发生时则跳过。-n, --dry-run 不执行任何操作,仅... 阅读全文
posted @ 2015-12-30 19:15 huey2672 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 命令格式 git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend] [--dry-run] [(-c | -C | --fixup | --squash) <commit>] [-F <file> | -m <m 阅读全文
posted @ 2015-12-30 18:21 huey2672 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 命令格式git diff [options] [] [--] […​]git diff [options] --cached [] [--] […​]git diff [options] [--] […​]git diff [options] git diff [options] [--no-... 阅读全文
posted @ 2015-12-30 17:43 huey2672 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 命令参数git status […​] [--] […​]命令格式--short, -s 短格式输出。-- long 长格式输出,默认选项。实例a) 查看工作树的状态[huey@huey-K42JE hello_git]$ git status# On branch masternothing ... 阅读全文
posted @ 2015-12-30 15:20 huey2672 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 命令格式git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p] [--edit | -e] [--[no-]all | --[no-]ignore-remov... 阅读全文
posted @ 2015-12-30 14:43 huey2672 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 命令格式git clone [--template=] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o ] [-b ] [-u ] [--reference ] [--dissocia... 阅读全文
posted @ 2015-12-30 13:59 huey2672 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 命令格式git init [-q | --quiet] [--bare] [--template=] [--separate-git-dir ] [--shared[=]] [directory]命令参数--quiet, -q 安静模式,只打印错误和警告信息。实例a) 创建... 阅读全文
posted @ 2015-12-30 11:35 huey2672 阅读(1516) 评论(0) 推荐(0) 编辑
摘要: 命令参数--get获取指定的配置项。--global对于写选项:全局配置,将参数配置于~/.gitconfig 而不是仓库目录下的.git/config。对于读选项:只从~/.gitconfig 文件中读取配置。--local 对于写选项:将参数配置于仓库目录下的.git/config,这是默认的... 阅读全文
posted @ 2015-12-30 10:51 huey2672 阅读(620) 评论(0) 推荐(0) 编辑