Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an argument for folders / files to ignore #30

Closed
KaviiSuri opened this issue Jun 14, 2021 · 5 comments
Closed

Add an argument for folders / files to ignore #30

KaviiSuri opened this issue Jun 14, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@KaviiSuri
Copy link

A functionality to ignore some folders and files might be really useful.
I recently tried using this action to copy the whole repo to another repo in order to host it.

.git folder was also copied in the copy step resulting in the action trying to push back to source repo and fails.

@cpina cpina added the enhancement New feature or request label Dec 8, 2021
@cpina
Copy link
Owner

cpina commented Dec 8, 2021

Thanks - this make sense.

Meanwhile some other users mentioned another solution: #33

Edit: I would also like to avoid changes / new features until I've managed to add some tests (#59) which is high in my priority for when I get time.

@harrietrs
Copy link

This would be a really useful addition- especially as currently using ./ as the source folder means that your git hooks are also included, which could create problems

@vencho-mdp
Copy link

Hi! Is there any way in which we could help with this? @cpina

@cpina
Copy link
Owner

cpina commented Jul 9, 2022

@vencho-mdp : I would still like to prepare some tests to make sure that new options don't break existing options. Testing the combinations is hard. Perhaps some approaches could be discussed in #59 ?

@cpina
Copy link
Owner

cpina commented Sep 5, 2022

See (new) FAQ: https://cpina.github.io/push-to-another-repository-docs/faq.html#how-can-i-copy-only-some-files-only-some-directories-exclude-some-files-etc

Next days I plan to improve the FAQ but it links to an example of filtering that hopefully helps you.

@cpina cpina closed this as completed Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants