制御とコンピューターサイエンスの間

This is a blog to share codes and ideas for building robots/aeronautical systems

論文の管理方法

概要

  • 文章:latex
  • 管理:github
  • 保存場所:googledrive

大まかな流れ

  1. googledriveにthesisとかいうフォルダ作る
  2. git init
  3. latex書き始める
  4. 更新するたびに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