What does the warning “redirecting to” actually me

2020-03-01 05:57发布

I have noticed that sometimes when I git pull a project, there is a message saying:

"warning: redirecting to <url>"

I tried searching what it means but I find nothing useful. What is it?

2条回答
啃猪蹄的小仙女
2楼-- · 2020-03-01 06:44
warning: redirecting to

This is typical of a Git repo URL starting with git:// or http://, but which is redirected at the server level to https:// (which is more secure, and allows for authentication)

This is set at the server level (as in this one) with a 301 Moved Permanently.

# enforce https
location / {
return 301 https://$server_name$request_uri;
}
查看更多
老娘就宠你
3楼-- · 2020-03-01 06:52

check you remote

git remote -v

probably yours remote is https://server/../project and does not end with .git ( https://server/../project.git)

查看更多
登录 后发表回答