Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

How to solve the issue of git push fatal origin?

Asked by Dan Peters Jul 25, 2023 2.9K views 1 answer
Share

About this question

Everything was doing well, since I could:

Git add. All the files from the local repository.

Git commit-m “message here” to put messages to the commits.

Gitpush origin master to upload the files to github.

git push heroku master to upload the files to Heroku.


But, I made a fresh local branch known as add-calendar-structure for the following step of the app development,

But inspite of trying, I could not fetch the first code that was madeprior to making the new branch from the master branch to the local repository.


Hence I decided to remove the files from the local repository and git clone the master branch from gitHub. I fetched my files but I am unable to push the remote repository. I attempt to run git push origin add-calendar-model or git-push origin master, the error appears: fatal: “origin” i not a git repository.

Fatal: Could not read from remote repositpry. I am uncomfortable with Git and GitHub, and I am looking forward to resolve the error.

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.