Skip to content

Adding gitmodules, to untrack repos/drupal changes#5

Open
shaal wants to merge 1 commit into
joachim-n:mainfrom
shaal:patch-3
Open

Adding gitmodules, to untrack repos/drupal changes#5
shaal wants to merge 1 commit into
joachim-n:mainfrom
shaal:patch-3

Conversation

@shaal

@shaal shaal commented Jun 16, 2021

Copy link
Copy Markdown
Contributor

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

@joachim-n

Copy link
Copy Markdown
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