Configuring a remote

(Lucas Roman Ortega ) #1

I have many commits do it in repo, but today i do some change and commit that … all good here …

The problem comes when i Push that change and chow me that message " Cannot connect to the remote repository at{myUser}/{MyRepo}.git".

I don´t have changes in git configuration before this i can push it everything, but now … no… please i don´t know what i can do, to solve it.

(Basile Pesin) #2

Hi there !
Sounds like your remote is incorrect. You should set it again.
Navigate to your repo on and copy the clone link, for instance in your case :{repo}.git
Then navigate to your local repo using the command line, and enter git remote set-url origin {link_you_copied}
That should do the trick ! Try pushing again afterwards to make sure everything works.

(Omal Perera) #3

yes! agree with @Vertmo

And also you can verify that the remote URL has changed or not, using

git remote -v


Thanks! :raised_hands:

(Lucas Roman Ortega ) #4

thanks, for help.

The problem i think, was the IDE netbeans but whent i push my changes from console the the PUSH is do it.