git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How to Not Track .metadata

From
MWMark Wartman <markwartman1@gmail.com>
Date
May 13, 2020, 23:51 UTC
Message-ID
<DD111BBE-F04A-4E44-99FE-5672FF2934B5@gmail.com>
Hello,
In a sentence, I cannot get Git to not track a .metadata file.  How would I correct this? 
Please see .txt files as the mail system would not allow me to mail it.

I can say that I did try running: git clean -n I realize that the -n is for a dry run but it did not return anything anyway.

I am using: git version 2.10.1 (Apple Git-78) OS X El Capitan version 10.11.6

Thanks,
Mark Wartman
I have cloned a repository that a particular .metadata file was pushed too.  This .metadata file seems to be causing me many git conflicts and other issues with Eclipse.

So lets say I had a folder named rev. I navigated into the folder rev which there was nothing in there to start with. I ran the command: git clone https://github.com/BenArayathel/0427Java.git

So now 0427Java lives inside of rev
Then inside of 0427Java there is folder called usf-batch-workspace

Inside of usf-batch-workspace are java projects that I and my fellow batch-mates work on. I have a .gitignore in all three of: java-project, usr-batch-workspace, and 0427Java and all three .gitignore’s are the same.

I suppose hierarchically it might look like:
rev   <---------( regular folder not tracked )
	0427Java
		usr-batch-workspace
			java-project
Inside my .gitignore I have used these:

/.metadata/ /usf-batch-workspace/.metadata/* **/.metadata/*

# Created by https://www.gitignore.io/api/eclipse # Edit at https://www.gitignore.io/?templates=eclipse

### Eclipse ### .metadata

# as well as the rest of the provided template
Next: brian m. carlson
Message 1 of 2 in “How to Not Track .metadata”
  1. Mark WartmanMay 13, 2020
  2. brian m. carlsonMay 14, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.