Working with Eclipse .classpath and project files in Git?

My firm is moving from PVCS to Git and I would like to know how can it help with the issues..

The current process is

  • Creating a new root directory in an Eclipse project under version control
  • This compilation unit is not on the build path of a Java project
  • How do I programmatically upload a file to a github repo's Downloads area?
  • jenkins android can't find sdkmanager.jar
  • Injecting current git commit id into Java webapp
  • How to fork a background process in Jenkins? Setting BUILD_ID and using nohup seems to be non working
    • We check everything out of PVCS
    • We then open Eclipse and Import the files in
    • We then have to fix the .classpath and profile file due to all the stuff not having jars in same place
    • Lock File in PVCS
    • Make Changes in Eclipse
    • Copy File from Eclipse workspace to PVCS folder
    • Unlock File

    — That was the current process, very long and room for error

    What I would like to move everything to git and just do a git pull but I dont want the .classpath and project file issue like I have in PVCS all the time.. I am thinking can I tell git to only read the .classpath and project file and never update it?

    I would love to hear how old eclipse using are working with git and ant.. thanks

  • How to configure Git post commit hook
  • Refresh all files in buffer from disk in vim
  • Implementing ActionBar-PulltoRefresh by Chris Banes, library errors etc
  • Delete git objects completely after a git reset
  • How does the Android repo manifest repository work?
  • How to merge a branch that is not created of Master into Master in GIT
  • One Solution collect form web for “Working with Eclipse .classpath and project files in Git?”

    You should put the .classpath file in .gitignore so that it never enters git in the first place.
    This way, each developer will have a purely local copy.

    To manage your dependencies, you should use Maven; its pom.xml is machine-independent and can live in git, and Eclipse can generate everything else from that file.

    Git Baby is a git and github fan, let's start git clone.