# Git: is it possible to properly sync a fork master to upstream master using only shallow local clones?

**URL:** <https://discourse.cataclysmdda.org/t/git-is-it-possible-to-properly-sync-a-fork-master-to-upstream-master-using-only-shallow-local-clones/24421>\
**Category:** The Toolbox\
**Created:** [August 11, 2020, 9:56am UTC](https://discourse.cataclysmdda.org/t/git-is-it-possible-to-properly-sync-a-fork-master-to-upstream-master-using-only-shallow-local-clones/24421 "2020-08-11T09:56:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![int\_ua](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/int_ua/32/4402_2.png) [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)\
**Post date:** [August 11, 2020, 9:56am UTC](https://discourse.cataclysmdda.org/t/git-is-it-possible-to-properly-sync-a-fork-master-to-upstream-master-using-only-shallow-local-clones/24421/1 "2020-08-11T09:56:21Z")

</div>

I cannot find a way to sync my fork with upstream on a shallow local clone. I work in `tmpfs` (RAM) without swap as I wouldn’t like having several GB of my SSD dedicated just to storing .git of CDDA. If there is a way it should definitely be added to `doc/DEVELOPER_FAQ.md` . I tried pulling just 120 commits with `git pull --depth=120 upstream master` and `.git` exploded to 1 GB immediately. It’s an improvement over 2+ GB for full history but I still cannot push to `origin` (my fork master) because the clone is shallow. git version is ` 2.25.1` .
