Forums

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

GIT push related issue

adilalam August 6, 2018

git push -u origin master

error: src refspec master does not match any.
error: failed to push some refs to 'git@bitbucket.org:ahmad/react-app.git'

 if we write

git push then 


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

 

how can solve it

1 answer

1 accepted

1 vote
Answer accepted
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2018

HI @adilalam

Might be you have not yet committed or added the changes to repo..

Please follow the below process and see if you can resolve this.

1. Change the dir

$ cd <Dir_name>

2. Add the files/dir

$ git add .

3. Commit the changes

$ git commit -m "<Commit Message>"

4. Push the changes to repo

$ git push -u origin master

 

Please let me know if you need anything else. 

adilalam August 6, 2018

thank you actually i am close my terminal then fllow your step it work

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events