Git 提示error:src refspec master does not match any

git push origin master

之后提示

error:src refspec master does not match any

这个问题之前遇到过,为了防止以后再遇到类似问题,还是把这个方法简单记录在此。

问题产生原因分析

引起该错误的原因是,目录中没有文件,空目录是不能提交上去的,而且在push之前至少有过一次commit
解决方法

git init 
git touch READMEgit 
git add README 
git commit -m 'first commit'
git remote add origin https://github.com/Cycamore/lantingtalk.github.io.git
git push origin master


72 thoughts on “Git 提示error:src refspec master does not match any”

  • Thanks for your posting. One other thing is when you are advertising your property alone, one of the problems you need to be mindful of upfront is how to deal with property inspection records. As a FSBO owner, the key about successfully transferring your property and saving money upon real estate agent profits is expertise. The more you know, the more stable your property sales effort is going to be. One area where by this is particularly essential is home inspections.

  • Thanks for these pointers. One thing I also believe is credit cards featuring a 0 rate often entice consumers with zero interest, instant endorsement and easy online balance transfers, but beware of the number one factor that will certainly void the 0 easy street annual percentage rate as well as throw you out into the bad house quickly.

  • I have been browsing online more than three hours today, yet I never found any interesting article like yours. It?s pretty worth enough for me. Personally, if all web owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

  • I’m amazed, I have to admit. Seldom do I encounter a blog that’s equally educative and entertaining, and without a doubt, you’ve hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. Now i’m very happy that I found this during my hunt for something concerning this.

  • I’ve really noticed that repairing credit activity really needs to be conducted with techniques. If not, chances are you’ll find yourself damaging your rank. In order to succeed in fixing your credit ranking you have to make sure that from this second you pay your entire monthly fees promptly before their scheduled date. It’s really significant given that by not necessarily accomplishing that, all other methods that you will decide to use to improve your credit ranking will not be powerful. Thanks for giving your ideas.

  • I have really learned result-oriented things through the blog post. One other thing I have found is that normally, FSBO sellers can reject an individual. Remember, they might prefer never to use your solutions. But if a person maintain a stable, professional partnership, offering aid and keeping contact for four to five weeks, you will usually have the ability to win a business interview. From there, a listing follows. Cheers

  • Excellent post. I was checking continuously this blog and I am impressed! Extremely helpful info particularly the last part 🙂 I care for such info much. I was looking for this certain info for a very long time. Thank you and good luck.

  • I found your blog website on google and examine a couple of of your early posts. Proceed to keep up the superb operate. I simply further up your RSS feed to my MSN News Reader. Looking for forward to reading more from you later on!?

  • I must thank you for the efforts you have put in penning this site. I really hope to see the same high-grade content from you later on as well. In fact, your creative writing abilities has encouraged me to get my own, personal blog now 😉

  • you are in point of fact a excellent webmaster. The web site loading speed is incredible. It sort of feels that you’re doing any distinctive trick. Moreover, The contents are masterwork. you’ve performed a great activity in this matter!

  • I have come across that nowadays, more and more people are now being attracted to cameras and the area of digital photography. However, like a photographer, you will need to first devote so much time period deciding which model of digicam to buy and also moving from store to store just so you might buy the cheapest camera of the brand you have decided to settle on. But it does not end right now there. You also have to contemplate whether you should purchase a digital digital camera extended warranty. Thanks alot : ) for the good suggestions I gained from your website.

  • You can certainly see your expertise within the paintings you write. The sector hopes for even more passionate writers such as you who are not afraid to mention how they believe. At all times go after your heart.

  • Thank you a bunch for sharing this with all folks you really know what you’re speaking approximately! Bookmarked. Please also seek advice from my website =). We could have a link trade agreement among us!

发表评论

邮箱地址不会被公开。 必填项已用*标注

9 + 1 =