GIT Remotes "Can't push, because no remotes are defined"

I had to move my project off of GitHub and onto our own internal repos. How do I get it to push to the new repositories?

0

Check out this issue, it seems to be related: http://youtrack.jetbrains.com/issue/IDEA-85914 .
See http://intellij-support.jetbrains.com/entries/23368682 if you are not familiar with YouTrack.

0

Hello!

you can't add new remotes from the UI, you have to do this in command line (http://gitref.org/remotes/)
Please see http://youtrack.jetbrains.com/issue/IDEA-87099

0
Avatar
Permanently deleted user

Thanks. I'll follow the issues.

0
Avatar
Permanently deleted user

They already have remotes, I just have to go to anotther of cli to push to them. It's extremely frustrating to the point where I'm thinking of looking for another IDE

0

Once you perform 'git remote add' from the CLI, you can use the IDE to push to remore repository (see attached screenshot)... And adding new remotes is not a thing you have to do too often, don't you?

.git/config:

[core]

                repositoryformatversion = 0

                filemode = false

                bare = false

                logallrefupdates = true

                symlinks = false

                ignorecase = true

                hideDotFiles = dotGitOnly

[remote "origin"]

                fetch = +refs/heads/*:refs/remotes/origin/*

                url = https://github.com/arun-gupta/javaee7-samples.git

[branch "master"]

                remote = mygithub

                merge = refs/heads/master

[remote "mygithub"]

                url = https://github.com/dummy/j2ee7_samples.git

                fetch = +refs/heads/*:refs/remotes/mygithub/*



Attachment(s):
push.png
0

请先登录再写评论。