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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Which files to save to git hub?

  • 26-01-2013 7: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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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