解决fatal: '/usr/local/git/share/doc/git-doc': not a documentation directory.
的问题:参见
git help --web log
git config --local -l
git config --global --list
git config --system --list
git config --gloabl user.name 'gloomyblack'
git config --global user.email 'gloomyblack@gmail'
git config user.name
git status
git log | cat
# 将当前已经跟踪的所有文件添加到暂存区
git add -u
# 给文件重命名的简单方法
git mv name newname
# 当前分支历史
git log
# 所有分支历史
git log --all
# 图形化历史
git log --all --graph
# 简洁列表
git log --online -n2
# 基于提交创建分支
git checkout -b temp e79fdec5792d
gitk
git init
当前仓库正工作在的分支:ref: refs/heads/temp
影响git local配置
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote "origin"] url = https://github.com/gloomyblack/gitlearning.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
-
master master文件内容:
359015bb6a44cc13be136d4c4b1739e2050bb415
查看其类型git cat-file -t 359015bb # commit
-
temp temp文件内容:
5aac26d59397d4386c4132886c49b5f46c4755b5
-
temp-version temp-version文件内容:
5aac26d59397d4386c4132886c49b5f46c4755b5
git cat-file -t 5aac26d5 # commit