{"thread":{"id":"16325","subject":"getting started with git","startedAt":"2008-11-14T10:16:00Z","lastAt":"2008-11-14T14:29:45Z","messageCount":3,"participants":["Ivan Senji","Tor Arvid Lund","Lars Hoss"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"95776","messageId":"20497802.post@talk.nabble.com","threadId":"16325","inReplyTo":null,"subject":"getting started with git","fromName":"Ivan Senji","fromEmail":"ivan.senji@gmail.com","sentAt":"2008-11-14T10:16:00Z","receivedAt":"2008-11-14T10:16:00Z","isPatch":false,"sender":{"key":"ivan.senji@gmail.com","avatar":null},"body":"\nHello everyone!\n\nI started using git recently to manage my personal projects and I really\nlike it. I develop on several different locations and have a little problem\nthat i couldn't find a way to solve.\n\nOn each location that i develop some project and configuration files are\ndifferent. But i would like them to be in the repository as a starting point\nwhen checking out a project (example: opening a project on a dfferent OS in\neclipse... eclipse will find an error in the path to jdk and ask me to fix\nthat error by selecting a different jdk).\n\nHow to achieve that these files are in the repository but that any further\nchanges to them are not commited (or are commited localy but not pushed to a\nremote repository)?\n\nIs that even possible?\n\nThanks!\n-- \nView this message in context: http://www.nabble.com/getting-started-with-git-tp20497802p20497802.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"95780","messageId":"1a6be5fa0811140456j10fd8703w74e485571e3c70af@mail.gmail.com","threadId":"16325","inReplyTo":"20497802.post@talk.nabble.com","subject":"Re: getting started with git","fromName":"Tor Arvid Lund","fromEmail":"torarvid@gmail.com","sentAt":"2008-11-14T12:56:14Z","receivedAt":"2008-11-14T12:56:14Z","isPatch":false,"sender":{"key":"torarvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/439758?v=4"},"body":"On Fri, Nov 14, 2008 at 11:16 AM, Ivan Senji <ivan.senji@gmail.com> wrote:\n> On each location that i develop some project and configuration files are\n> different. But i would like them to be in the repository as a starting point\n> when checking out a project (example: opening a project on a dfferent OS in\n> eclipse... eclipse will find an error in the path to jdk and ask me to fix\n> that error by selecting a different jdk).\n>\n> How to achieve that these files are in the repository but that any further\n> changes to them are not commited (or are commited localy but not pushed to a\n> remote repository)?\n\nHi,\n\nWell, if it were me, I think I would commit that eclipse config file\nunder a different name... Say, \".classpath.defaults\" instead of\n\".classpath\". Then your README file could tell your users to start by\ncopying the .classpath.defaults to .classpath, and update its contents\nas necessary. Put .classpath in your .gitignore file, so it won't be\ncommitted to the repository.\n\n-Tor Arvid-\n"},{"id":"95788","messageId":"fc0c0c65f69439eede2e4565c5f930fd.squirrel@webmail.highteq.net","threadId":"16325","inReplyTo":"1a6be5fa0811140456j10fd8703w74e485571e3c70af@mail.gmail.com","subject":"Re: getting started with git","fromName":"Lars Hoss","fromEmail":"lars@woeye.net","sentAt":"2008-11-14T14:29:45Z","receivedAt":"2008-11-14T14:29:45Z","isPatch":false,"sender":{"key":"lars@woeye.net","avatar":"https://gravatar.com/avatar/e862a9093727061e069dc50151eb0aed62bb0f09443a391113f93ee532bc4af8?d=mp&s=160"},"body":">\n> Well, if it were me, I think I would commit that eclipse config file\n> under a different name... Say, \".classpath.defaults\" instead of\n> \".classpath\". Then your README file could tell your users to start by\n> copying the .classpath.defaults to .classpath, and update its contents\n> as necessary. Put .classpath in your .gitignore file, so it won't be\n> committed to the repository.\n\nTemplate files (x.default) is a good idea. But regarding your example\nwith .classpath: it's safe to add it to git since it's developer\nindependent and project oriented. Therefore it's useful for every\ndeveloper in the project who uses eclipse :-)\n\nYours,\nLars\n"}]}