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

Ignore git submodule from commits #3418

Merged
merged 1 commit into from Feb 21, 2023
Merged

Ignore git submodule from commits #3418

merged 1 commit into from Feb 21, 2023

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Jan 19, 2023

Ignore git submodule via git update-index --assume-unchanged apoc-core,
in build.core and init script, so that after building the project or executing an ./gradlew --init-script init.gradle <cmd> will be hidden from a later git add ..

Note that if I directly git add . before either of these 2 steps above,
the sumbodule will appear in the staging area


Alternative:
Document somewhere (maybe here) that e.g. git add . also adds the submodule,
so we possibly need to remove it with git restore --staged apoc-core.


Other attempts:
ignore=all or ignore = dirty in .gitmodules hide the submodule with git status but not with git add ..

.gitignore seeems not to work properly

@vga91 vga91 changed the title [WIP] Ignore git submodule from commits Ignore git submodule from commits Jan 20, 2023
@conker84 conker84 merged commit c51eb86 into dev Feb 21, 2023
@conker84 conker84 deleted the ignore-gitsubmodule branch February 21, 2023 15:24
vga91 added a commit that referenced this pull request Feb 21, 2023
vga91 added a commit that referenced this pull request Feb 22, 2023
vga91 added a commit that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants