Closed mzminhaz5683 closed 5 years ago
Thanks for your questions. It seems your remote repository is one commit ahead of your local machine. You have to pull it first and then make changes in your local machine. try
git pull origin master git add . git commit -m "first commit" git push origin master
Note: Besides creating a new repository in Github you have added README.md. Which makes your remote repository one commit ahead of your local repository. So, that shows the error.
I have a git directory in my pc and I have created the github repository already. Git is working properly for local, but when I try to push the work by remote (in github) it shows errors.
All my works and commands are in google drive. Link : https://drive.google.com/drive/folders/1vN-aBOPQ_Lhywl_dEynOYeC9V1aDgyuV?usp=sharing
I have been trying all the possible ways of my known and I also check many where for the solution..But can't cope with the problem. Please help.
I think there is a problem in github repository as it doesn't look like as the one which was seen in class.