Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

using git first time and getting error in git push

Kavitha E
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2019

Below is error while i am trying to checkin

[kavithae@devrh72-1 common]$ git push origin
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

[kavithae@devrh72-1 common]$
[kavithae@devrh72-1 common]$
[kavithae@devrh72-1 common]$
[kavithae@devrh72-1 common]$ git push --set-upstream origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[kavithae@devrh72-1 common]$

1 answer

0 votes
matrixfueller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2019

Well you are missing apparently your remote. You have to set it up before pushing to it.

https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events