有時使用git拉取gitlab上的項目時會出現如下的錯誤信息:Repository not found
remote: Repository not found.
fatal: repository 'http://10.68.7.177/xxx/xxx.git' not found
出現此錯誤是因為本地已經保存過之前項目的權限信息--賬號/密碼,但是該賬號密碼對於想要拉取代碼的項目權限不匹配,因此需要在拉取代碼時添加具有權限的賬號密碼:
打開DOS窗口執行:git clone http://username:password@10.68.7.177/xxx/xxx.git
如此即可解決。