V
V
Vladimir Tyutimov2015-12-14 12:01:59
git
Vladimir Tyutimov, 2015-12-14 12:01:59

How to clone not all files from a Git repository?

Hello. There is a repository on BitBucket that stores all site template files, as well as SASS and GRUNT files. It also has folders in which .js and .css files are compiled. I need to get only these folders, excluding other files. How to set it up?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2015-12-14
@BidiBom

it was necessary to set up .gitignore right away and not commit the compiled files to git
, now you can fix it and then do git rm -rf --cached build (or wherever they are) and commit this thing.

D
D', 2015-12-14
@Denormalization

The obvious solution:
Clone everything, and then copy only the files you need to the right place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question