Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Tag: Submodules

Git

Git: Fix a Submodule Stuck on a Detached Head After a Pull

- 16.11.26 - ErcanOPAK comment on Git: Fix a Submodule Stuck on a Detached Head After a Pull

🔀 Git: Fix a Submodule Stuck on a Detached Head After a Pull Running git pull on a superproject updates the recorded submodule commit pointer in the index, but unless submodule.recurse is configured, it doesn’t check out that commit inside the submodule’s own working tree – and even when it does, the submodule lands at […]

Read More
Git

Git: Fix a Submodule That Always Shows as Modified With No Visible Diff Because It’s Checked Out Ahead of the Commit the Parent Repo Recorded

- 28.10.26 - ErcanOPAK comment on Git: Fix a Submodule That Always Shows as Modified With No Visible Diff Because It’s Checked Out Ahead of the Commit the Parent Repo Recorded

🔀 Fix a Submodule That Always Shows as Modified With No Visible Diff Because It’s Checked Out Ahead of the Commit the Parent Repo Recorded A submodule entry in the parent repository is a pointer to one exact commit, not a branch – cloning the parent and running an update checks that submodule out at […]

Read More
Git

Git: Fix Nested Submodules That Stay Completely Empty Because Update Was Never Run With the Recursive Flag

- 23.10.26 - ErcanOPAK comment on Git: Fix Nested Submodules That Stay Completely Empty Because Update Was Never Run With the Recursive Flag

🔀 Fix Nested Submodules That Stay Completely Empty Because Update Was Never Run With the Recursive Flag A submodule that itself contains another submodule – a dependency pulling in its own sub-dependency as a separate repository – needs its init/update step run recursively, and it’s an easy detail to miss because the outer submodule checks […]

Read More
Git

Git: Fix a Submodule Staying Pinned to an Old Commit Because git pull Never Updates Submodule References on Its Own

- 23.10.26 - ErcanOPAK comment on Git: Fix a Submodule Staying Pinned to an Old Commit Because git pull Never Updates Submodule References on Its Own

🔀 git pull Updates the Pointer – Not the Submodule Behind It A superproject repository doesn’t actually contain a submodule’s files – it contains a single recorded commit hash saying “this submodule should be checked out at exactly this commit,” and a plain git pull on the superproject only ever updates THAT pointer value, never […]

Read More
Git

Git: Fix git clean -fd Silently Deleting Untracked Files Inside an Uninitialized Submodule

- 15.10.26 - ErcanOPAK comment on Git: Fix git clean -fd Silently Deleting Untracked Files Inside an Uninitialized Submodule

🔀 The Clean Command That Found a Submodule Full of Strangers git clean -fd removes untracked files and directories from the working tree – and it only special-cases a submodule directory the top-level repo currently recognizes as properly initialized. A submodule folder that was never initialized through the parent repo, or one someone cloned into […]

Read More
Git

Git: Fix a Submodule Stuck on an Old Commit While Everyone Else Has Moved On

- 27.09.26 - ErcanOPAK comment on Git: Fix a Submodule Stuck on an Old Commit While Everyone Else Has Moved On

🔀 Everyone Else’s Submodule Updated – Yours Quietly Didn’t A Git submodule doesn’t automatically track the latest commit on its remote’s default branch – it’s pinned to a specific commit recorded in the parent repository, and that pin only moves when someone explicitly runs an update command, which means a teammate can pull the latest […]

Read More
Git

Git: Git Submodules for Managing Dependencies

- 16.08.26 - ErcanOPAK comment on Git: Git Submodules for Managing Dependencies

📦 Git Submodules = Dependency Management Managing dependencies can be complex. Git submodules help you manage external repositories. 📝 Submodule Commands # Add Submodule git submodule add https://github.com/example/library lib git submodule add -b develop https://github.com/example/library lib # Clone with Submodules git clone –recurse-submodules https://github.com/example/project # Update Submodules git submodule update –init git submodule update –remote […]

Read More
Git

Git: Use Submodules for External Repositories

- 19.07.26 - ErcanOPAK comment on Git: Use Submodules for External Repositories

📦 Submodules = External Repositories Projects depend on other repos. Submodules include external repositories. Track dependencies, version control included. 📝 Submodule Commands # Add submodule git submodule add https://github.com/user/repo.git path/to/submodule # Clone with submodules git clone –recursive https://github.com/your/repo.git # Initialize submodules git submodule init # Update submodules git submodule update # Update with recursive git […]

Read More
Git

Git: Use Submodules for External Repositories

- 12.07.26 - ErcanOPAK comment on Git: Use Submodules for External Repositories

📦 Submodules = External Repos Projects depend on other repos. Submodules include external repositories. Track dependencies, version control included. 📝 Submodule Commands # Add submodule git submodule add https://github.com/user/repo.git path/to/submodule # Clone with submodules git clone –recursive https://github.com/your/repo.git # Initialize submodules git submodule init # Update submodules git submodule update # Update with recursive git […]

Read More
Git

Git: Use Submodules for External Repositories

- 07.07.26 - ErcanOPAK comment on Git: Use Submodules for External Repositories

📦 Submodules = External Repos Projects depend on other repos. Submodules include external repositories. Track dependencies, version control included. 📝 Submodule Commands # Add submodule git submodule add https://github.com/user/repo.git path/to/submodule # Clone with submodules git clone –recursive https://github.com/your/repo.git # Initialize submodules git submodule init # Update submodules git submodule update # Update with recursive git […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (609)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (547)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com