I'm connected to (university's) remote server via ssh
command. I want to push upstream data to remote git repository from that server. I'm trying to do it only via https (ssh keys aren't set).
I'm trying to do it by command:
git push -u https://gitlab.com/username/reponame.git master
but GitLab doesn't even ask me about my credentials (repository is private so I would expect some authorization).
How can I do it?
EDIT: (sorry for delay, but due to too many ssh connections, I was kicked from university network)
Responses to comments:
@Salman:
git remote show origin
doesn't work
(without set origin: fatal: 'origin' does not appear to be a git repository
),
(with origin set to git@gitlab.com:username/reponame.git
- error ssh: connect to host gitlab.com port 22: Connection timed out
)
@sajib khan: I get following error:
fatal: unable to access 'https://gitlab.com/username/reponame.git/': Failed to connect to gitlab.com port 443: Connection timed out