github errors
- dealing-with-non-fast-forward-errors
- when we create a repository and then add a readme file to it then while pushing to it generates the error. I have not worked on its solution instead I created a new repository and did not add readme. then performed the following steps
- goto to the root of the project folder ( check its properties by right clicking n it)
- git init
- git remote add origin https://github.com/javaiskool/springexamples.git
- i got the error:
- fatal: remote origin already exists.
- i removed the error by using the following command
- git remote rm origin
- then
- git remote add origin https://github.com/javaiskool/springexamples.git
- git add .
- git commit -a -m "initial commit"
- git push -u origin --all
- after that i created a readme.md file and described the example.
- As the repository is public username and password were not asked
No comments:
Post a Comment