Not able to push the file to the remote repository from the local repository.PFA for the same

0 votes

I'm trying to push the file to remote repository from local repository, but I'm unable to

Dec 17, 2018 in Git & GitHub by Ali
• 10,430 points
30 views

1 answer to this question.

0 votes

Please let me know if you have set an origin for your local repository?? Please run the below command and share the output:

git remote -v

If the above command doesn't show any output that means you have not added any origin to your local repository.

Run the below command to add origin:

git remote add origin <URL of your GitHub repository>

After adding the origin try to push by running the below command:

git push origin master 
answered Dec 17, 2018 by Arohi

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

How to get the files from the local desktop to the local repository?

Hey @Ali, Follow these steps to transfer ...READ MORE

answered Dec 17, 2018 in Git & GitHub by Arohi
28 views
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2 in Git & GitHub by Sirajul
• 25,420 points
66 views
0 votes
1 answer

I am not able to use pull, push, branch merge

Please execute the below command in the ...READ MORE

answered May 23 in Git & GitHub by Umer
37 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
150 views
0 votes
1 answer
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
1,587 views
+1 vote
1 answer

Git: Remove committed file after push

check out the previous (unchanged) state of ...READ MORE

answered Aug 14, 2018 in Git & GitHub by Kalgi
• 40,460 points
132 views