Home  >  Q&A  >  body text

python - Question about how to rename files on Github

1. I use the web version of Github and want to rename a folder (for example: change find_a_capitals to find_a_national_GDP). The premise is that I don’t want to delete the file and then upload it again. What should I do?

我想大声告诉你我想大声告诉你2675 days ago822

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-06-22 11:54:34

    Changing the file name is a file change. The hash value will change. There is no need to delete the file. Clone it, rename it directly, and then commit it. Just push

    reply
    0
  • 欧阳克

    欧阳克2017-06-22 11:54:34

    git-mv - Move or rename a file, a directory, or a symlink

    git mv find_a_capitals find_a_national_GDP

    reply
    0
  • Cancelreply