I cloned part of a git repo from *repo1*

cd my-repo
git init
git remote add -f upstream ...

Then I set up sparseCheckout, and the local directory only contains the 
directory I want.
Then I added another remote

git remote add new-repo ...
git push -u new-repo master

Even though the local only contains the files I want, the last command 
still pushes everythin from upstream to my new-repo.

How can I make git only push what is at my local repo?


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to