开发者

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 (b开发者_JAVA技巧een 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!


  1. Create a new directory in your repo's root.
  2. Move all other files into that directory (using git mv).
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜