Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Which files to save to git hub?

Options
  • 26-01-2013 8:57pm
    #1
    Closed Accounts Posts: 799 ✭✭✭


    Hi finally set up github/eGit on eclipse but just wondering which files I should save(Java).
    Should it only be the .java files?


Comments

  • Registered Users Posts: 2,588 ✭✭✭KonFusion


    That depends on the project.

    You could just push everything.

    If not then I guess just push all project essential files, be they .java or otherwise.

    Imagine some other contributor is pulling the work. Or your pulling from a different PC. What will you need? Push that.


  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2


    Everything you need to use the project, minus private stuff (which personaly I think shouldn't even be in the VCS).

    https://github.com/blog/1390-secrets-in-the-code


  • Closed Accounts Posts: 799 ✭✭✭Logical_Bear


    Thanks for the replys!
    KonFusion you make a good point
    Imagine some other contributor is pulling the work. Or your pulling from a different PC. What will you need? Push that.
    At the moment really just using it to back up my code and make it easy to update any of my projects whether they are on the pc or my laptop.It would be a good habit to get into though(thinking of other users etc)


  • Registered Users Posts: 7,838 ✭✭✭Nulty


    Think carefully about what you think shouldn't be made public (assuming it's a public repo). production database connection details (username/password) especially.

    This is a great starting point: https://github.com/github/gitignore


  • Registered Users Posts: 2,021 ✭✭✭ChRoMe


    Nulty wrote: »
    Think carefully about what you think shouldn't be made public (assuming it's a public repo). production database connection details (username/password) especially.

    This is a great starting point: https://github.com/github/gitignore

    THIS!

    Recently there was a bunch of SSH keys harvested from github because a lot of people were careless. Github's public by default is why I use bitbucket tbh.


  • Advertisement
Advertisement