Skip to content

Unshallow repository to restore ni/v2 branch history - #195

Closed
nicobrauchtgit with Copilot wants to merge 1 commit into
ni/v2from
copilot/check-git-history-ni-v2
Closed

Unshallow repository to restore ni/v2 branch history#195
nicobrauchtgit with Copilot wants to merge 1 commit into
ni/v2from
copilot/check-git-history-ni-v2

Conversation

Copilot AI commented Dec 23, 2025

Copy link
Copy Markdown

The ni/v2 branch appeared disconnected with a "grafted" commit and no visible parent history due to shallow clone.

Changes

  • Unshallowed repository via git fetch --unshallow
    • Restored full ni/v2 commit chain: fe3e5c5 → f73e20b → 7675f63 → 76ed2d5 → 8a79121 → 2c7db75
    • Removed .git/shallow file that was truncating history

Findings

ni/v2 is an orphan branch - root commit fe3e5c5 has no parent. This is separate from the main branch lineage:

$ git merge-base main ni/v2
# (no output - no common ancestor)

$ git rev-list --max-parents=0 --all
fe3e5c5b787a6af5d55f588ae914cc638ea41b83  # ni/v2 root
7d081c1c69bd10c1acbc4732e2b25470d877da85  # main root

The branch represents a complete v2 rewrite with independent history. Merging requires --allow-unrelated-histories.

Original prompt

I fucked up the git history with my ni/v2 branch based on main can you check out the history to see what i mean? it does not seem to be based on something


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Examine git history for ni/v2 branch Unshallow repository to restore ni/v2 branch history Dec 23, 2025
Copilot AI requested a review from nicobrauchtgit December 23, 2025 11:14
@nicobrauchtgit
nicobrauchtgit deleted the branch ni/v2 December 29, 2025 18:37
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