Skip to content

Moving files in a GitHub repository without moving them on my computer #23756

Discussion options

You must be logged in to vote

Hi JoeKM888! 👋 Moving files in the GitHub web UI is a bit of a pain. You can move files one by one by editing them and then editing the file path:

https://help.github.com/en/github/managing-files-in-a-repository/moving-a-file-to-a-new-location

That won’t work on some types of files that can’t be edited in the UI, such as images or PDFs, and in any case, moving them one by one is not very practical!

So the solution is indeed to move the folder on your local copy, and then push the change to GitHub. (This is how using the CLI to move things works too - you move you local copy, then push the change.)

Here’s a helpful article that explains how to use the mv command, which is how you move file…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants