MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

MEGAsync does not upload .git and .gitignore files!

Open Rashcodeacademy opened this issue 2 years ago • 2 comments

MEGAsync does not upload .git and .gitignore files! is there a way to include them without deleting .* from exclude area?

Rashcodeacademy avatar Jan 17 '23 15:01 Rashcodeacademy

This will be easy in the near future. We have an upcoming release that introduces .megaignore files for controlling exclusions and you can re-include subsets. You can try out an Alpha version here, and it has a link to the issue describing the .megaignore format. thanks https://github.com/meganz/MEGAsync/issues/770

mattw-mega avatar Jan 17 '23 21:01 mattw-mega

MEGAsync does not upload .git and .gitignore files! is there a way to include them without deleting .* from exclude area?

You can add

+:.gitignore
+:.git

to your .megaignore file. It worked for me.

alex-cornejo avatar Jun 12 '24 20:06 alex-cornejo

Instead of the default -:.*, I prefer to only exclude directories (d):

-d:.*
+d:.git
+d:.vscode

https://help.mega.io/installs-apps/desktop/megaignore

dzid26 avatar Jan 21 '25 23:01 dzid26

Thanks for your feedback. Closing the issue.

rl-mega avatar Jun 06 '25 11:06 rl-mega