lockfile.c treewide: remove unnecessary includes of cache.h Mar 22, 2023 lockfile.h lockfile: report when rollback fails Mar 8, 2024 log-tree.c global: mark code units that generate warnings with -Wsign-compare Dec 6, 2024 log-tree.h rebase-update-refs: extract load_branch_decorations Oct...
git show [<options>] […] DESCRIPTION Shows one or more objects (blobs, trees, tags and commits). For commits it shows the log message and textual diff. It also presents the merge commit in a special format as produced by git diff-tree --cc. For tags, it shows the tag message...
(use "git push" to publish your local commits) nothing to commit, working tree clean 使用--soft 模式进行撤回->暂存区 ➜ learn_git git:(master) git reset --soft HEAD~ ➜ learn_git git:(master) ✗ git status On branch master Your branch is up to date with 'origin/master'. ...
git show-branch --all # 图示所有分支历史 git whatchanged # 显示提交历史对应的文件修改 git revert dfb02e6e4f2f7b573337763e5c0013802e392818 # 撤销提交dfb02e6e4f2f7b573337763e5c0013802e392818 git ls-tree HEAD # 内部命令:显示某个git对象
git ls-files [--stage]show information about files in the index and the working tree(实际是查看索引文件) git watchchanged <since>..<until>显示两个commit(当然也可以是branch)的区别 git remote [-v]显示远程仓库,加-v选项可显示仓库地址
git showgit show <commitId>git show <branchName> shortlog 用于汇总 git 日志输出。非常人性化的一个命令。// 按照用户列出其 commit 的次数以及每次 commit 的注释git shortlog// 按照 commit 数量从多到少的顺序列出本仓库的贡献者并省略注释git shortlog -sn diff 用来比较文件之间的不同。具体用法可参考...
This option is only valid for the deinit command. Unregister all submodules in the working tree. -b <branch> --branch <branch> Branch of repository to add as submodule. The name of the branch is recorded assubmodule.<name>.branchin.gitmodulesforupdate --remote. A special value of.is us...
【查看所有远程/本地分支当前版本】git show-branch-a 代码合并基本命令 (7步操作) 【拉取代码】git fetch (拉取到缓存区,还需要手动合成代码) 【合并代码】git merge (远程分支名) eg: git merge origin/master 【查看冲突】git diff 【查看所在分支】git branch ...
common history branch List, create, or delete branches checkout Switch branches or restore working tree files commit Record changes to the repository diff Show changes between commits, commit and working tree, etc merge Join two or more development histories together rebase Forward-port local commits...