Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8999509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:11:23+00:00 2026-06-16T00:11:23+00:00

I cloned few repo from the github into my current working direcory. I forgot

  • 0

I cloned few repo from the github into my current working direcory.
I forgot to delete the .git folder in their folder and i commited the changes.

Then i delete the .git folders inside them and again hit commit.

Now in my bitbucket account they are coming as greyout in grey color like this.
I can’t click on them

demo_test1 → 3608f1e44d[36044c82d]
demo_test2 → 8cc44a089[8cc4a089]

All the files are still there in my local folders but not in bitbucket.

IF i hit commit it says no changes but files are still there.

what should i do

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:11:24+00:00Added an answer on June 16, 2026 at 12:11 am

    You could reset your HEAD and index back to before you added your nested repos:

    git reset SHA1_before_first_commit_with_nest_git_repos
    git add . 
    git commit -m "nested repos clones"
    git push -f
    

    The git reset won’t affect your current working directory (so your files remains untouched, and your nested repos, without their .git folder that you just removed, are still there).
    After the reset, you can add all those files again, and force push that new commit back to BitBucket.

    If you don’t have many collaborator on that BitBucket repo, forcing the push (ie, replacing the published history by a new one), won’t be a problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've cloned a (remote) repo into Eclipse(EGit), which created a working directory for the
I've cloned a Git repository a few days back and began working on it,
I cloned the git repo and placed in the document root of my nginx
I accidentally added a cloned git repository to a working copy clone of my
I have cloned a git repo which has my emacs config files in. I
I have a repository that I cloned from someplace a few months back and
I had git cloned the MapBox-ios-sdk project. I've made a few ugly hack changes
I am trying to get a specific package (Launcher2) from the google git repo
I cloned the Protobuf-PHP repository: https://github.com/drslump/Protobuf-PHP.git that I found at https://github.com/drslump/Protobuf-PHP , and I
I've been using git for a few months and have never run into problems.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.