如果看教程, 则把疑问记录下来 随着教程的推进, 有些疑问就会被解答 没解答的你也能组织语言更准确的描述问题
(解决)git add 加入追踪, 加入暂存. 加入到某个列表吗? 列表在哪里?
(解决)仅提交一个文件的一处修改, 为什么提示(一个添加, 一个修改, 一个删除)
(解决)git remote -v 输出的内容(fetch) (push) 是什么意思
git remote show [remote-name] 输出的信息是什么意思
#查看某一个远程仓库
#git remote show [remote-name]
$ git remote show origin
* remote origin
# 远程仓库的代称
URL: <https://github.com/my-org/complex-project>
# 远程仓库的地址
Fetch URL: <https://github.com/my-org/complex-project>
# 获取数据时取数据的地方(有时候只获取某个分支的代码)
Push URL: <https://github.com/my-org/complex-project>
# 向远程服务器推送数据时存放的地方(有时候只推送某个分支的代码)
HEAD branch: master
# 本地仓库当前坐在分支
Remote branches:
# 远程仓库的分支信息
# 哪些在本地没有, 哪些已经移除
master tracked
dev-branch tracked
markdown-strip tracked
issue-43 new (next fetch will store in remotes/origin)
issue-45 new (next fetch will store in remotes/origin)
refs/remotes/origin/issue-11 stale (use 'git remote prune' to remove)
Local branches configured for 'git pull':
# 如果pull, 哪些分支会自动合并???
dev-branch merges with remote dev-branch
master merges with remote master
Local refs configured for 'git push':
# 如果push, 分支的合并情况???
dev-branch pushes to dev-branch (up to date)
markdown-strip pushes to markdown-strip (up to date)
master pushes to master (up to date)
导出为裸仓库的时候, 是怎么处理暂存区的
盲猜是工作目录和暂存区都不要的
tree object, commit object 的内容里面是没有换行符的一堆字符串
查找具体内容的时候是靠关键字匹配的吗? 正则?
这个里面并没有键值对的格式?