我创建了一个项目(https://github.com/twaldecker/vim-cheat-sheet),现在我意识到我喜欢这个cheatsheet的风格并希望创建一个模板。Git:创建一个项目框架,并让项目基于框架
我所做的是:
git clone cheatsheet-vim cheatsheet-template
cd cheatsheet-template
# remove vim specific content, some additions
cd ../cheatsheet-vim #go back to vim project
git checkout -b testbranch #create a new branch
git remote add template ../cheatsheet-template
git fetch template
git merge template/master #now I got the template project as branch in the base project
的,现在的问题是如何让上创建了项目本身的模板VIM-的cheatsheet项目基地。
我想拥有什么:
- 有模板项目,我可以改变
- 拥有的cheatsheet,vim的项目,我可以拉canges从模板
我知道源代码不是很大,只需重新创建vim-cheatsheet并复制相关的源代码就可以了,但我想了解真正的git方法。 – Thomas