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,290 points
19 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
16 views
0 votes
1 answer

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

The ‘git log’ command is your closest ...READ MORE

answered Jul 4, 2018 in Git & GitHub by Sophie may
• 9,050 points
38 views
0 votes
1 answer
+13 votes
2 answers
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
769 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
• 35,750 points
85 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.