0

I have recently changed over to a platform, Cloud9, for my school projects, and more. Unfortunately it only 512MB of storage for free users.

Halfway through, I am exceeding the disk quota so I removed all my previous work and started a clean workspace. I would like to add my new projects into the same remote repository (for easy organizational purposes).

Is there a workaround (or hack) for me to stage, commit changes, and merge* (I'm not trying to forcibly overwrite) them into the remote repository without having all the files on the local repository?

isherwood
  • 58,414
  • 16
  • 114
  • 157
WCGPR0
  • 751
  • 1
  • 11
  • 24
  • 1
    Possible duplicate of [Is there any way to clone a git repository's sub-directory only?](http://stackoverflow.com/questions/600079/is-there-any-way-to-clone-a-git-repositorys-sub-directory-only) – isherwood Nov 30 '15 at 21:25
  • Possibly you have to choose between "easy organizational purpose" and reasonable splitting repository into several parts in this case ... – pmod Nov 30 '15 at 21:41
  • @isherwood Thank you - I think sparse checkout might be what I'm looking for, but I can't seem to push subdirectories back into the remote repository. – WCGPR0 Dec 01 '15 at 00:03

1 Answers1

1

You may try using git shallow copy - git clone --depth 1 <remote>

Vasfed
  • 18,013
  • 10
  • 47
  • 53