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
• 11,360 points
1,030 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
773 views
0 votes
1 answer

How to change the URL for a remote Git repository?

Hi@akhtar, You can use the git remote command ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,460 points
1,098 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, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,605 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,039 views
+2 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
19,834 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
• 52,350 points
10,847 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP