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

[Feature Request] Untrack unwanted file/dir like .gitignore #11

Open
r888800009 opened this issue Nov 10, 2023 · 4 comments
Open

[Feature Request] Untrack unwanted file/dir like .gitignore #11

r888800009 opened this issue Nov 10, 2023 · 4 comments

Comments

@r888800009
Copy link
Contributor

r888800009 commented Nov 10, 2023

Hi, I think it might be a useful feature if .yarsyncignore could be implemented in yarsync.

This can avoid commit and synchronize __pycache__, .DS_Store, some-program.lock, such folders and files

It seems that this feature possible implemented through --exclude-from=

Thank you

@ynikitenko
Copy link
Owner

ynikitenko commented Nov 10, 2023 via email

@ynikitenko
Copy link
Owner

In general, it is a bad idea to store programming repositories as unchanged files. Also because yarsync will simply overwrite changes if they happen. So you should not have __pycache__ in your repositories. But yes, I eventually got object files from some C++ codes (which I didn't develop myself, so I stored them simply as files).

@r888800009
Copy link
Contributor Author

Thanks for the reply,

.ys/rsync-filter can replace .gitignore and more flexible, it meets the current requirements of my use case.

by the way, according to the manual, using rsync-filter is generally not recommended, and the rsync-filter file will not be synchronized. It seems that this flexibility causes problems.

Not sure if anyone will need to sync rsync-filter, but it may be rare

@ynikitenko
Copy link
Owner

ynikitenko commented Nov 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants