Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Having both global and local .gitignore
Having both global and local .gitignore [message #1829238] Mon, 29 June 2020 09:09 Go to next message
Eclipse UserFriend
Hi,

I am using JGit to fetch git status and I have both a global and a folder level .gitignore file.

I can configure exclude file using either one using:

git.getRepository().getConfig().setString("core", null, "excludesFile",
                GLOBAL_GIT_IGNORE_PATH);


How can I make sure both the global and local .gitignore files are considered for filtering files?

Any pointers in this regard is much welcome!

Thanks!
Srini
Re: Having both global and local .gitignore [message #1829247 is a reply to message #1829238] Mon, 29 June 2020 11:01 Go to previous message
Eclipse UserFriend
You don't have to do anything. .gitignore files inside the git working tree are always taken into account.
Previous Topic:Usage of ssh-agent
Next Topic:How to pass the Git tag value to a Maven build run by Eclipse to embed into the WAR file manifest?
Goto Forum:
  


Current Time: Mon Jul 14 14:42:24 EDT 2025

Powered by FUDForum. Page generated in 0.03724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top