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!
- 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.
精彩评论