A
A
antpv2018-07-08 16:00:53
git
antpv, 2018-07-08 16:00:53

Why can't I push to git?

I do everything as it is written in github, I execute all commands in git bush.
On the command git remote add origin https://github.com/*
Pops up: fatal: remote origin already exists
What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-07-08
@antpv

Enter:
and you will see that you already have a link to the repository with the origin alias, which is what is written in the error.
If you need to change the link to the repository, use the command:
git remote set-url origin *new_link*

R
Reality, 2018-07-08
Tester @Aoom

As an option, use the desktop application , available on Windows and macOS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question