hfurubotten / autograder

Automatic management and build tool for lab assignments. Moved to organization autograde: https://github.com/autograde
https://github.com/autograde
Other
14 stars 7 forks source link

Add .gitignore on username-labs repo creation #10

Closed meling closed 9 years ago

meling commented 9 years ago

When creating a username-labs repo, we should make sure to add a .gitignore file to prevent them from committing .exe files and similar crap. GitHub usually allow you to do this on manual repo creation, so it may also be possible through the API.

One way to work around it is to add .gitignore to the labs repo so that when students fetch code for the next lab assignment, they will also get the .gitignore.

hfurubotten commented 9 years ago

This is indeed possible. Will implement this on next overhaul of the GitHub creation process. We should make a list of these files to implement into a standard .gitignore.

It should also be possible to distribute the .gitignore by updating it in the labs repo. When the students pull this update their repo will also be subject to this .gitignore change.

meling commented 9 years ago

For a sample .gitignore check your own in autograder. (Looks like the one generated by github for Go projects). You may remove some of the extras, but we should probably leave main in there.

meling commented 9 years ago

We also want to add .DS_Store to .gitignore