Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include suggestions for using git with signac #100

Open
atravitz opened this issue Aug 18, 2020 · 4 comments
Open

Include suggestions for using git with signac #100

atravitz opened this issue Aug 18, 2020 · 4 comments

Comments

@atravitz
Copy link
Collaborator

We should acknowledge git in our documentation somewhere

Issue Description

Common questions I've gotten from new users (and questions I've asked myself) are "what should I put in my git ignore", "should I commit my workspace to git", and "can I keep track of my git hash in the job document".

Proposed change

I think we should include some best practices that we all tend to use with git, such as not including the workspace in your git repo. Maybe this can go in FAQs?

Additional context

An additional topic for discussion here is: does anyone have a reliable way of tracking what code version they used to generate data for a specific job? Tracking the git hash is one way, but I'm interested to see if anyone has thought of other ideas.

@vyasr
Copy link
Contributor

vyasr commented Aug 18, 2020

Regarding the Additional Context, this is what glotzerlab/signac-flow#189 is meant to help with, but yes git hashes are probably one of the best options.

@bdice
Copy link
Member

bdice commented Oct 28, 2020

Here's what I put in my .gitignore. This probably isn't a complete list, make suggestions if I'm overlooking something. This will also depend on the project (some people may want to commit some of these files, but I tend to separate my data from the code that generates it).

.bundles
.signac_shell_history
.signac_sp_cache.json.gz
signac.rc
signac_data.h5
signac_project_document.json
workspace

@csadorf
Copy link
Contributor

csadorf commented Oct 28, 2020

It's really time that we long-term move towards .signac/ for all those files cluttering the project root directory, huh? :)

@vyasr
Copy link
Contributor

vyasr commented Oct 29, 2020

Yup, definitely think that's the right move long term! Documented at glotzerlab/signac#197 and glotzerlab/signac-flow#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants