Exact `svn export` equivalent command for git? -


there no exact svn export equivalent command git? really?

beware: not duplicate question. is, know , have tested these commands:

  • git clone --depth 1 <- still downloads .git folder.
  • git checkout-init <- doesn't work remote repo, works working copy (so need clone first).
  • git archive <- perfect solution, because has --remote argument, has 2 possible formats: tar or zip, need untar/unzip after downloading, , need pipe (|), i'm on windows!! (not *n?x)
  • git clone --bare <- still don't know heck is, it's not need.

please enlighten me there real svn export replacement in git?

at hostings github can make exact svn export.

example:

svn export https://github.com/gnome/banshee/branches/master 

even partial! (some subpart of repository)

example:

svn export https://github.com/liferay/liferay-portal/branches/6.1.x/tools 

for own repository should create github repository , add remote:

git remote add github https://github.com/<user>/<repo>.git 

then

git push github <branch> 

now able partial checkout above.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -