git pull origin master --rebase

git subtree & git submodule

Subtree로 가져온 upstream history를 git shallow로 잘라내기