![](/img/trans.png)
[英]I accidentally commited my project folder in my first Git push. But I don't want to have a parent folder at all in Git. What can I do to fix this?
[英]I can`t coop with my Git. errors when git commit and git add so I can`t even do my task
當我嘗試提交時,它說
錯誤:pathspec '1st commit' 與 git 已知的任何文件都不匹配
當我嘗試添加文件時,它什么也沒說。 當我嘗試添加分支時,它說
致命:不是有效的 object 名稱:'master'。
我究竟做錯了什么?
git commit
打開消息編輯器。 使用-m
在命令行上傳遞它們。 但試着更喜歡真實地編輯它們。 好的,描述性的提交已經拯救了我的培根幾次。 當我試圖理解某些東西時,壞的會降低我的工作效率,而git blame
突然變得沒用了。 寫好消息。 你未來的自己和你的同事會感謝你。git add
需要路徑規范,而分支不是路徑規范。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.