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

Re: getting started with git

From
Tor Arvid Lund <torarvid@gmail.com>
Date
Nov 14, 2008, 12:56 UTC
Message-ID
<1a6be5fa0811140456j10fd8703w74e485571e3c70af@mail.gmail.com>
In-Reply-To
<20497802.post@talk.nabble.com>
On Fri, Nov 14, 2008 at 11:16 AM, Ivan Senji <ivan.senji@gmail.com> wrote:
Show 9 quoted lines
> On each location that i develop some project and configuration files are
> different. But i would like them to be in the repository as a starting point
> when checking out a project (example: opening a project on a dfferent OS in
> eclipse... eclipse will find an error in the path to jdk and ask me to fix
> that error by selecting a different jdk).
>
> How to achieve that these files are in the repository but that any further
> changes to them are not commited (or are commited localy but not pushed to a
> remote repository)?
Hi,

Well, if it were me, I think I would commit that eclipse config file under a different name... Say, ".classpath.defaults" instead of ".classpath". Then your README file could tell your users to start by copying the .classpath.defaults to .classpath, and update its contents as necessary. Put .classpath in your .gitignore file, so it won't be committed to the repository.

-Tor Arvid-
Previous: Ivan SenjiNext: Lars Hoss
Message 2 of 3 in “getting started with git”
  1. Ivan SenjiNov 14, 2008
  2. Tor Arvid LundNov 14, 2008
  3. Lars HossNov 14, 2008

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.