Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

仓库文件夹命名错了怎么在浏览器中修改名称 #59

Open
thirstylearning opened this issue Jan 18, 2024 · 6 comments
Open

Comments

@thirstylearning
Copy link

仓库文件夹命名错了怎么在浏览器中修改名称?尝试过命令行但是终端连不上GitHub。在浏览器里找不到可以给文件夹改名的地方

@TreeECNU
Copy link

在浏览器中好像不能进行修改文件夹操作。
只能用命令行才可以直接修改文件夹名称。
网上搜索得,可使用如下命令:
git mv -f oldfolder newfolder
如:现有文件夹:test,需修改为:test_file

git mv -f test test_file
git add -u test_file	# -u:会更新已经追踪的文件和文件夹
git commit -m "重命名文件夹"
git push origin master

@thirstylearning
Copy link
Author

好的好的,明白了,谢谢!

在浏览器中好像不能进行修改文件夹操作。 只能用命令行才可以直接修改文件夹名称。 网上搜索得,可使用如下命令: git mv -f oldfolder newfolder 如:现有文件夹:test,需修改为:test_file

git mv -f test test_file
git add -u test_file	# -u:会更新已经追踪的文件和文件夹
git commit -m "重命名文件夹"
git push origin master

@ecnu-Sun
Copy link

好像浏览器不能直接改,下载回来改好再传上去把

@Hu-shaoyan
Copy link

我也尝试过在浏览器里直接改但是好像不行,看网上教程是说要把远端仓库的文件全部拉到本地,在本地改好以后再push上去

@LghLcxLjxLxb
Copy link

我之前也遇到了类似问题,思路也是删除远程的文件夹再重新上传,网上找的教程是https://blog.csdn.net/u014678583/article/details/115195605
然后再重新push就好了

@zxyyxb
Copy link

zxyyxb commented Jan 20, 2024

浏览器里改不了,在自己的远程仓库改了以后更新push一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants