question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include an appropriately configured .gitignore file in the generated project

See original GitHub issue

One of the first things I do after generating a project is to create an appropriately configured .gitignore file for it. What goes in the file is build system specific. For Gradle projects, I’d like .gradle, build, and bin (thanks, Eclipse) to be ignored by default. For Maven projects, I’d like target to be ignored by default.

I realise that this is VCS specific, so perhaps it shouldn’t be switched on by default, although I suspect that the vast majority of people will be using Git these days.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:12
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dsyercommented, Nov 18, 2015

I’d be happy to ignore the IDE I wasn’t using. All Spring projects have eclipse and intellij ignores already.

1reaction
spencergibbcommented, Oct 14, 2015
Read more comments on GitHub >

github_iconTop Results From Across the Web

.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or...
Read more >
git - .gitignore for Visual Studio Projects and Solutions
Open Visual Studio and the solution needing an ignore file. From the top menu select Git > Settings. ... The above will open...
Read more >
How to Create & Use GitIgnore File Properly, Quickly & Easily
How to use gitignore file - Why we use gitignore file - What are benefits of gitignore file - Why gitignore is important-...
Read more >
Git Best Practices and Adding a .gitignore File
A .gitignore file lists all of the files that are local to a project that Git should not push to GitHub. A ....
Read more >
gitignore Documentation - Git
These patterns match relative to the location of the .gitignore file. A project normally includes such .gitignore files in its repository, containing patterns ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found