覃谈谭的blog


Just for me

How do I make existing non-bare repository bare?

0 条评论 Git 无标签 adtxl

1.stackoverflow

How to convert a normal Git repository to a bare one?

2.How do I make existing non-bare repository bare?

https://git.wiki.kernel.org/index.php/GitFaq#How_do_I_make_existing_non-bare_repository_bare.3F

After making sure that there are no uncommitted changes, etc.:

$ mv repo/.git repo.git
$ git --git-dir=repo.git config core.bare true
$ rm -rf repo

The problem with the above process is that it doesn't take into account future internal changes of Git. A safer method is to let Git handle all the internal settings for you by doing something like this.

* ssh to remote server
* git clone --bare -l <path_to_repos> <new_dir>
* renamed old repository directory
* renamed new repository dir to what old repository used to be.
other

git config --bool core.bare false
git config --bool core.bare true


OpenGrok使用说明

0 条评论 知识点 无标签 adtxl

OpenGrok一个快速、便于使用的源代码搜索与对照引擎。它帮助你搜索,对照,定位你的源代码树。它能够明白各种程序文件格式和版本控制历史记录。


修改Linux Kernel defconfig的标准方法

0 条评论 Linux 无标签 adtxl

我们在开发过程中,经常遇到需要打开Linux kernel的某项功能或者宏,这时就需要修改defconfig。如果不使用标准方法修改,可能会导致defconfig冗余且混乱,也有可能导致某项功能没有成功enable,所以建议大家使用标准的menuconfig进行修改。