0

I have committed many files in different directorys using intellij and git. How to download these committed files with their directories structure?

2
  • 1
    What do you mean by "download files from a commit"? Commented Apr 12, 2024 at 16:34
  • Do you want to download all content of the repo as it is in a commit X? Or a "patch" matching what changed in commit X? Or.. something else? I assume you want something doable by someone not having Git installed, right? Commented Apr 12, 2024 at 17:13

1 Answer 1

1

I think what you're asking for is "git archive". If you want a zip file containing all the source files at their current version without any of the extra Git files, you can do:

git archive -o myproject.zip HEAD 

...and then copy myproject.zip somewhere else and unzip it.

Do "git help archive" for more options. You can create *.tar files instead of *.zip, and specify older versions instead of the current, etc.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.