What does the warning “redirecting to” actually mean?

前端 未结 5 495
终归单人心
终归单人心 2021-01-03 22:45

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

\"warning: redirecting to \"

I tried search

5条回答
  •  一整个雨季
    2021-01-03 23:17

    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;
    }
    

提交回复
热议问题