Skip to content

Adding gitmodules, to untrack repos/drupal changes #5

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shaal
Copy link
Contributor

@shaal shaal commented Jun 16, 2021

With .gitmodules file, we can run git status without notification about "changes" in the drupal repo /repos/drupal

@joachim-n
Copy link
Owner

Thanks for the PR.

Could you explain a bit what this is needed for?

If you install this as a composer project, then you don't get a git clone of it, it's just plain files. So doing 'git status' in the project root will just make git say it's not a git repo.

And if you're running it from the git clone, to do development on this Composer project, then I think it's better to put a .gitignore that ignores the whole of /repos. That way if the user puts anything else in there, it's covered too. I have one that contains:

repos
web
vendor
.gitignore
composer.lock
/.editorconfig
/.gitattributes

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

Successfully merging this pull request may close these issues.

2 participants