Moving original directory in GitHub

I created an original GitHub repository and committed all my code. I would like to move this directory now into a new directory (not in the repo root directory). I am a bit confused how to tackle this (been through Git Help and threads here).

I'm a bit of a GitHub / Terminal newb :-)

This is what I am trying to do:

Projects -> github_project

Projects -> Directory -> github_project

thanks!


  • Create a new directory in your repo's root.
  • Move all other files into that directory (using git mv ).
  • Push to GitHub.

  • Update to address edited question

    If you just want to put it in a new directory, then create the new directory and move the repository there.

    链接地址: http://www.djcxy.com/p/90496.html

    上一篇: 我可以在Github for Windows上指定克隆存储库的文件夹名称吗?

    下一篇: 在GitHub中移动原始目录