Skip to content

Instantly share code, notes, and snippets.

@mon-jai
Created July 29, 2026 21:59
Show Gist options
  • Select an option

  • Save mon-jai/e579efd18786705606763ee9e98a2ba8 to your computer and use it in GitHub Desktop.

Select an option

Save mon-jai/e579efd18786705606763ee9e98a2ba8 to your computer and use it in GitHub Desktop.
~ > mkdir temp
~ > cd temp
~ / temp > git init
Initialized empty Git repository in C:/Users/Mon/temp/.git/
~ / temp > git submodule add https://github.com/github/.github submodule
Cloning into 'C:/Users/Mon/temp/submodule'...
remote: Enumerating objects: 115, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 115 (delta 44), reused 36 (delta 36), pack-reused 56 (from 1)
Receiving objects: 100% (115/115), 40.24 KiB | 312.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.
warning: in the working copy of '.gitmodules', LF will be replaced by CRLF the next time Git touches it
~ / temp > git commit -am "Initial commit"
warning: in the working copy of '.gitmodules', LF will be replaced by CRLF the next time Git touches it
[main (root-commit) c73d0e4] Initial commit
2 files changed, 4 insertions(+)
create mode 100644 .gitmodules
create mode 160000 submodule
~ / temp > git remote add origin https://github.com/mon-jai/submodule-bug.git
~ / temp > git branch -M main
~ / temp > git push -u origin main
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 12 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 320 bytes | 320.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/mon-jai/submodule-bug.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
~ / temp > 07/30/2026 05:58:36 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment