简体   繁体   中英

How to add a private remote git repository in PhpStorm?

This might seem like a stupid question but I can't find the information in the PhpStorm docs.

  • I have created a private, empty git repository on GitLab.
  • I created a local project with composer to install a framework.

Now I want to connect this local project with the private repository on GitLab.

But every time I try to add the remote I can't find an option to add any credentials of sorts so naturally it fails telling me it can't find the remote or it got rejected.

I know there are other ways to do this but I've done a setup like this before a long time ago.

Here is what you'd normally do

git remote add gitlab url-to-gitlab-repo
git push gitlab master

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM