I
I
igorvlk2021-05-16 00:12:26
git
igorvlk, 2021-05-16 00:12:26

Issues with push command when working with GIT, why errors?

The first time I encountered GIT, I work through VSCode, everything seemed to be fine, but after creating the SSH key, when I entered the pash command in the bash terminal, the Github authorization window began to pop up, and the login and password were entered twice, I tried to figure it out, I generated the SSH key, registered it in the Github account, and also entered a number of commands there, it seems that the timeout of 7 hours did and the password for the key, though after it regenerated the keys, added it to Github again and removed the password entry.
The bottom line is that now I tried the git push command on different directories, the authorization window in Github stopped popping up, but now there are errors in the terminal and the committed files are not added
$ git push
error: unknown option `timeout'
usage: git credential-cache [options]

credential-cache is disabled in this build of Git

To https://github.com/igorvlk/git-course.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ' https://github.com/igorvlk/git-course.git '
hint: Updates were rejected because the remote contains work that you do
hint : do not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (eg, 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HemulGM, 2021-05-16
@HemulGM

Please use ssh for the link, not https.

M
Madi Pagani, 2021-05-16
@prince_pagani

throw off the link where you decided to push the data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question