Jay Taylor's notes
back to listing indexrsync exclude according to .gitignore & .hgignore & svn:ignore like --filter=:C
[web search]
Rsync includes a nifty option For example, I have lots of Maven projects checked out from GitHub. Typically they include a Of course I can explicitly And I could supply a complete list of absolute paths for all file names and patterns mentioned in any Since rsync has no built-in support for VCS checkouts other than CVS, is there any good trick for feeding it their ignore patterns? Or some kind of callback system whereby a user script can be asked whether a given file/directory should be included or not? Update: |
|||||||||||||||||||||
|
|||||||||||||||||||||
As mentioned by luksan, you can do this with the |
|||||||||||||||||||||
|
You can use Options:
The only thing I left to ignore was
|
||||
I had a number of very large |
|||||||||||||||||||||||||||
|
how about |
|||||||||
|
Check out the MERGE-FILES FILTER RULES section in rsync(1). It looks like it's possible to create a rsync --filter rule that will include .gitignore files as traverses the directory structure. |
|||
Per the
So, my $HOME/.cvsignore file looks like this:
to exclude .git and the files generated by Sass. |
|||||||||||||||||||||
|
Your Answer
Not the answer you're looking for? Browse other questions tagged git svn mercurial rsync or ask your own question.
asked |
3 years ago |
viewed |
8708 times |
active |
Linked
Related
Hot Network Questions
- Am I interrupting my husband's parenting?
- How to defeat the elven insects using modern technology?
- Does a long flight on a jet provide a headstart to altitude acclimatisation?
- aligning shapes in latex
- When to ignore errors that are common and the program recovers from
- Equal pay for equal work is controversial?
- My 21 yr old adult son hates me
- Word/phrase/idiom for person who is no longer deceived
- Positional Bathroom Etiquette
- When I added a resistor to a set of christmas lights where I cut off bulbs, it gets hot. Why does a shorter string of lights not need a resistor?
- Does the key vector approach in RingCT represent linkability among transactions? Can it be exploited by blockchain analysis?
- How common is it to use the word 'bitch' for a female dog?
- Why did my cron job run?
- =TEXT([Date Column],"MMMM") issue
- Why was Susan treated so unkindly?
- What's this I hear about First Edition Unix being restored?
- Probability of throwing a die
- \def inside of \def not visible in titles or captions
- What's in Naboo's core, liquid water or plasma?
- How much and what type of damage does Warlock Thought Shield deal?
- Imperatives of derivatives of facere, dicere and ducere
- C++11 - typeid uniqueness
- "/usr/bin/ping" is shown as yellow-on-red in the default Fedora bash color scheme -- what does it mean?
- English fellow vs Arabic fellah
Technology | Life / Arts | Culture / Recreation | Science | Other | ||||||
---|---|---|---|---|---|---|---|---|---|---|