Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
252 views

pom.xml, **/pom.xml, **/**/pom.xml, then **/**/**/pom.xml... What shortcut to target a file we know its name, whatever its depth in directories?

To apply some changes to all my pom.xml files, I'm running these commands: git checkout --theirs **/**/**/**/pom.xml git checkout --theirs **/**/**/pom.xml git checkout --theirs **/**/pom.xml git ...
Marc Le Bihan's user avatar
9 votes
1 answer
4k views

How can I get git to select txt files in the current directory alone

How do I select all the files ending with .txt in the current directory, but omit all the ones in the subdirectories? *.txt selects all the files ending in .txt in the subdirectories as well. How do ...
hello_rocker_dot_com's user avatar
0 votes
2 answers
726 views

What is the difference between '*.txt' and *.txt?

I was completing the git tutorial found here: https://try.github.io/levels/1/challenges/7 And it said that I had to put single quotes around *.txt. I had not seen this before when using linux but ...
Fortune's user avatar
  • 103
29 votes
7 answers
15k views

Find files that are not in .gitignore

I have find command that display files in my project: find . -type f -not -path './node_modules*' -a -not -path '*.git*' \ -a -not -path './coverage*' -a -not -path './bower_components*' \ ...
jcubic's user avatar
  • 10.3k
1 vote
2 answers
2k views

Why asterisk in command result in for loop is expanding?

I want to write a script that will run git diff --name-status master..<BRANCH> but when I run this: for i in $(git branch | grep -v master); do echo $i; done I get echo one directory ...
jcubic's user avatar
  • 10.3k
37 votes
1 answer
34k views

What is the .gitignore pattern equivalent of the regex (Big|Small)(State|City)-[0-9]*\.csv

I have a regex I stuck in my .gitignore similar to: (Big|Small)(State|City)-[0-9]*\.csv It didn't work so I tested it against RegexLab.NET. I then found the gitignore man page which led me to learn ...
Justin Dearing's user avatar