Git - Eclipse 提交工程至 GitHub
摘要:1. 在 GitHub 新建一个工程 hello-world,repository 地址是 https://github.com/username/hello-world.git 2. 在 Eclipse 新建一个工程 hello-world 3. 选择工程右键 -> Team -> Share P
阅读全文
posted @
2016-11-04 16:12
huey2672
阅读(186)
推荐(0)
Git CMD - tag: Create, list, delete or verify a tag object signed with GPG
摘要:命令格式git tag [-a | -s | -u ] [-f] [-m | -F ] [ | ]git tag -d …git tag [-n[]] -l [--contains ] [--points-at ] [--column[=] | --no-column] [--...
阅读全文
posted @
2016-01-07 13:05
huey2672
阅读(306)
推荐(0)
Git CMD - pull: Fetch from and integrate with another repository or a local branch
摘要:命令格式git pull [options] [ […]]命令参数-q, --quiet 安静模式。-v, --verbose 详情模式。实例a)下载远程仓库的 master 分支,并与本地的当前仓库合并。$ git pull origin master更多http://git-scm.com...
阅读全文
posted @
2015-12-31 16:07
huey2672
阅读(315)
推荐(0)
Git CMD - fetch: Download objects and refs from another repository
摘要:命令格式git fetch [] [ […]]git fetch [] git fetch --multiple [] [( | )…]git fetch --all []命令参数--dry-run 不执行任何操作,只显示将会发生什么。-v, --verbose 详情模式。实例a)下载远程...
阅读全文
posted @
2015-12-31 15:51
huey2672
阅读(289)
推荐(0)
Git CMD - remote: Manage set of tracked repositories
摘要:命令格式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
阅读(315)
推荐(0)
Git CMD - push: Update remote refs along with associated objects
摘要:命令格式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
阅读(476)
推荐(0)
Git CMD - log: Show commit logs
摘要:命令参数git log [] [] [[\--] …]命令参数--since=, --after= 显示自指定日期后的日志。--until=, --before= 显示在指定日期前的日志。实例a) 显示提交日志。$ git logb) 单行显示日志。$ git log --pretty=one...
阅读全文
posted @
2015-12-31 13:43
huey2672
阅读(432)
推荐(0)
Git CMD - merge: Join two or more development histories together
摘要:命令格式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
阅读(318)
推荐(0)
Git CMD - checkout: Switch branches or restore working tree files
摘要:命令格式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
阅读(324)
推荐(0)
Git CMD - branch: List, create, or delete branches
摘要:命令格式git branch [--color[=] | --no-color] [-r | -a] [--list] [-v [--abbrev= | --no-abbrev]] [--column[=] | --no-column] [(--merged | ...
阅读全文
posted @
2015-12-31 11:39
huey2672
阅读(418)
推荐(0)
Git CMD - reset: Reset current HEAD to the specified state
摘要:命令格式git reset [-q] [] [--] …git reset (--patch | -p) [] [--] […]git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] []命令格式-- soft 回...
阅读全文
posted @
2015-12-31 10:08
huey2672
阅读(430)
推荐(0)
Git CMD - rm: Remove files from the working tree and from the index
摘要:命令格式git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch] [--quiet] [--] …命令参数-f, --force 强制删除。-r 递归删除目录及其内容。-- cached 从暂存区移除文件,不再跟踪文件,工作区...
阅读全文
posted @
2015-12-30 19:16
huey2672
阅读(421)
推荐(0)
Git CMD - mv: Move or rename a file, a directory, or a symlink
摘要:命令格式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
阅读(421)
推荐(0)
Git CMD - commit: Record changes to the repository
摘要:命令格式 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
阅读(289)
推荐(0)
Git CMD - diff: Show changes between commits, commit and working tree, etc
摘要:命令格式git diff [options] [] [--] […]git diff [options] --cached [] [--] […]git diff [options] [--] […]git diff [options] git diff [options] [--no-...
阅读全文
posted @
2015-12-30 17:43
huey2672
阅读(517)
推荐(0)
Git CMD - status: Show the working tree status
摘要:命令参数git status […] [--] […]命令格式--short, -s 短格式输出。-- long 长格式输出,默认选项。实例a) 查看工作树的状态[huey@huey-K42JE hello_git]$ git status# On branch masternothing ...
阅读全文
posted @
2015-12-30 15:20
huey2672
阅读(326)
推荐(0)
Git CMD - add: Add file contents to the index
摘要:命令格式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
阅读(361)
推荐(0)
Git CMD - clone: Clone a repository into a new directory
摘要:命令格式git clone [--template=] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o ] [-b ] [-u ] [--reference ] [--dissocia...
阅读全文
posted @
2015-12-30 13:59
huey2672
阅读(609)
推荐(0)
Git CMD - init: Create an empty Git repository or reinitialize an existing one
摘要:命令格式git init [-q | --quiet] [--bare] [--template=] [--separate-git-dir ] [--shared[=]] [directory]命令参数--quiet, -q 安静模式,只打印错误和警告信息。实例a) 创建...
阅读全文
posted @
2015-12-30 11:35
huey2672
阅读(1543)
推荐(0)
Git CMD - config: Get and set repository or global options
摘要:命令参数--get获取指定的配置项。--global对于写选项:全局配置,将参数配置于~/.gitconfig 而不是仓库目录下的.git/config。对于读选项:只从~/.gitconfig 文件中读取配置。--local 对于写选项:将参数配置于仓库目录下的.git/config,这是默认的...
阅读全文
posted @
2015-12-30 10:51
huey2672
阅读(643)
推荐(0)