How to handle an imported git repo?

I imported my bitbucket (mercurial) repo to github and it seems to work except that I got a new root. When I used to clone from bitbucket, the root was xxx and now my root is yyy/xxx so I must travest one node into the directory and open that directory with pycharm instead. Is there a convenient way for me to arange so that when I clone the gihub repo, I will get the root xxx and not the new yyy/xxx ?

  • Configuration of 2 Bitbucket accounts on one laptop: cannot clone code
  • How to structure Git repo for multi-tier architecture
  • What does it mean when it says a git step is “1 ahead”
  • how to create folder on BitBucket?
  • reverting to previous change in bitbucket
  • How to merge two code bases with Git
  • About git --amend -m “blablalba”
  • Logging out from Git Credential Manager for Windows
  • Difference between `git branch -f <branch_name> <hash>` and `git checkout <branch_name>; git reset --hard <hash>` under a clean working tree?
  • gitignore everything except specific files
  • Is it possible to work with multiple branches of the same repository concurrently?
  • How do I make a git hook for modifying then mirroring a git repository?
  • One Solution collect form web for “How to handle an imported git repo?”

    If you see yyy/xxx when cloning, that means your GitHub repo must have a single xxx folder.

    You can, in your local clone, move everything back to root:

    cd /path/to/local/clone
    git mv xxx/* .
    git add -A .
    git commit -m "MOve everything to root folder"
    git push
    
    Git Baby is a git and github fan, let's start git clone.