fatal: Not a valid object name: 'master'
在使用git的時候,可能會出現如下報錯:
[HTML] 純文字檢視 複製程式碼fatal: Not a valid object name: 'master'
報錯翻譯成漢語意思大致是:一個非法的master分支,也就是說本地還沒有一個master分支。
master分支是自動建立的,這點沒錯,但是必須要至少進行一次提交一會,才會自動建立此分鐘。
初始化一個倉庫後,立馬建立一個新的分支"antzone",結果報錯。
程式碼修改如下:
進行一次提交之後,再去建立分支就不會出現此錯誤。
相關文章
- Caused by: Error: ' ' is not a valid resource name characterError
- brew 報錯 error: Not a valid ref: refs/remotes/origin/master 的解決方法ErrorREMAST
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- 故障案例:主從同步報錯Fatal error: The slave I/O thread stops because master and slave have equal MySQL server主從同步ErrorthreadASTMySqlServer
- ! [rejected] master -> master (fetch first)AST
- fatal: Authentication failedAI
- 036 Valid Sudoku
- spring - mvc - @ValidSpringMVC
- Longest Valid Parentheses
- Leetcode 20 Valid ParenthesesLeetCode
- Leetcode 36 Valid SudokuLeetCode
- 125. Valid Palindrome
- 65-Valid Number
- WPF筆記3——x:Name 與 Name筆記
- Oracle修改instance_name、db_name、db_unique_name、service_namesOracle
- Leetcode 32 Longest Valid ParenthesesLeetCode
- CSS :valid 選擇器CSS
- Please provide a valid cache pathIDE
- InnoDB: No valid checkpoint found.
- gipchaLowerProcessNode: no valid interfaces found to node
- 941. Valid Mountain ArrayAI
- await is only valid in async functionAIFunction
- git merge origin master git merge origin/master區別GitAST
- git rebase masterGitAST
- 1248:Dungeon MasterAST
- Scrum Master JobGPTScrumASTGPT
- SourceTree 提示 fatal: Authentication failed for..AI
- [Code Composer Studio] fatal error #6001Error
- Leetcode 611 javascript Valid Triangle NumberLeetCodeJavaScript
- [LeetCode] 678. Valid Parenthesis StringLeetCode
- [LeetCode] 32. Longest Valid ParenthesesLeetCode
- A valid provisioning profile for this executable was not found.
- @Valid和@Validated的區別
- @Valid 與 @Validated 的區別
- IDBDatabase.nameDatabase