我創建了一個項目(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