Rename file with Git

前端 未结 6 1813
忘了有多久
忘了有多久 2021-01-29 20:12

I\'m new to Git/Github and I needs some help. I would like to rename file from README to README.md. I have only one repo called \"change-z-index\".

1) I open and login l

6条回答
  •  孤城傲影
    2021-01-29 20:29

    Note that, from March 15th, 2013, you can move or rename a file directly from GitHub:

    (you don't even need to clone that repo, git mv xx and git push back to GitHub!)

    renaming

    You can also move files to entirely new locations using just the filename field.
    To navigate down into a folder, just type the name of the folder you want to move the file into followed by /.
    The folder can be one that’s already part of your repository, or it can even be a brand-new folder that doesn’t exist yet!

    moving

提交回复
热议问题