論文の管理方法
概要
大まかな流れ
- googledriveにthesisとかいうフォルダ作る
- git init
- latex書き始める
- 更新するたびにgit commit, git push
問題
毎回git init していたのでgithubのrepositoryの数が多くなってしまった.
解決法
git merge して全てをpapersというrepositoryの下で管理することとした
要求
概要図
papers
|- conferences
|- IROS_2019
|- ICRA_2019
|- journals
|- thesis
|- bachelor
|- master
|- doctor
履歴残したい
repo1のcommit数31
repo2のcommit数10
新しいrepoのcommit数 31+10 = 41としたい
やったこと
cd ~/repo1 git remote add repo2 ~/repo2 git fetch repo2 # ↑でうまくいかないときにはパスを指定する↓ git merge -X subtree=subdir repo2/master