国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

解決git提示fatal: not a git repository (or any of the parent directories): .git

這篇具有很好參考價(jià)值的文章主要介紹了解決git提示fatal: not a git repository (or any of the parent directories): .git。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

1、創(chuàng)建分支時(shí)提示:not a git repository

E:\myproject>git checkout -b zhenzhu
fatal: not a git repository (or any of the parent directories): .git

2、怎么辦?

git init--》git status--》git checkout -b test20230217--》成功

3、為什么?

一般是沒(méi)有初始化git本地版本管理倉(cāng)庫(kù),使用init命令行初始化,再status查看狀態(tài),正常后繼續(xù)報(bào)錯(cuò)前命令行即可;

補(bǔ)充說(shuō)明:

1、git init 初始化git倉(cāng)庫(kù)
2、git status 查看文件狀態(tài)

3、創(chuàng)建并切換到新分支
? ? git?checkout?-b?xxxx? ?(xxx--》是你自己起的分支名稱(chēng))

4、git?checkout命令加上-b參數(shù)表示創(chuàng)建并切換,相當(dāng)于以下兩條命令:

?$?git?branch?dev (創(chuàng)建)

$?git?checkout?dev (切換--》切換到基礎(chǔ)分支如下:git?checkout?master)

fatal: not a git repository (or any of the parent directories): .git,git,github

?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-779886.html

到了這里,關(guān)于解決git提示fatal: not a git repository (or any of the parent directories): .git的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • fatal: not a git repository (or any of the parent directories): .git

    fatal: not a git repository (or any of the parent directories): .git

    小編遇到這樣一個(gè)問(wèn)題,當(dāng)git clone 后,進(jìn)行分支切換時(shí),報(bào)錯(cuò)fatal: not a git repository (or any of the parent directories): .git 而且出現(xiàn)了分支無(wú)法查詢到的情況下 解決方法:進(jìn)去.git文件夾 再打開(kāi)git終端, 如果直接在此處進(jìn)行分支切換,會(huì)提示報(bào)錯(cuò) ? 輸一下git branch -a 再回退到上一級(jí)

    2024年02月12日
    瀏覽(26)
  • 執(zhí)行g(shù)it命令報(bào)錯(cuò):fatal: not a git repository (or any of the parent directories): .git

    執(zhí)行g(shù)it命令報(bào)錯(cuò): 沒(méi)有初始化git本地版本管理倉(cāng)庫(kù),在打開(kāi)文件的子目錄層級(jí)中不包含.git文件,所以無(wú)法執(zhí)行g(shù)it命令。 執(zhí)行g(shù)it初始化?,進(jìn)行初始化 查看其狀態(tài)

    2024年02月16日
    瀏覽(20)
  • 【Git】git pull 報(bào)錯(cuò) fatal: not a git repository (or any of the parent directories): .git

    【Git】git pull 報(bào)錯(cuò) fatal: not a git repository (or any of the parent directories): .git

    在使用 git pull 拉取倉(cāng)庫(kù)時(shí)報(bào)錯(cuò),錯(cuò)誤信息如下圖所示: 這個(gè)錯(cuò)誤表明當(dāng)前目錄不是一個(gè) Git 倉(cāng)庫(kù),因此無(wú)法執(zhí)行 git pull 命令。 錯(cuò)誤提示中指出當(dāng)前目錄不是一個(gè) Git 倉(cāng)庫(kù),因此無(wú)法執(zhí)行 git pull 命令。這可能是因?yàn)樵谝粋€(gè)不是 Git 倉(cāng)庫(kù)的目錄中使用了 Git 命令。 使用 git init 命

    2024年02月04日
    瀏覽(28)
  • git命令報(bào)錯(cuò):fatal: not a git repository (or any of the parent directories): .git husky - git command not

    git命令報(bào)錯(cuò): fatal: not a git repository (or any of the parent directories): .git husky - git command not found, skipping install 報(bào)錯(cuò)原因: 沒(méi)有初始化git本地版本管理倉(cāng)庫(kù),在打開(kāi)文件的子目錄層級(jí)中不包含.git文件,所以無(wú)法執(zhí)行g(shù)it命令。 解決方案: 執(zhí)行g(shù)it初始化 ,進(jìn)行初始化 查看其狀態(tài) 參考

    2024年02月04日
    瀏覽(54)
  • fatal: Not a git repository (or any parent up to mount point /home)解決方法

    fatal: Not a git repository (or any parent up to mount point /home)解決方法

    Git遇到一個(gè)問(wèn)題: fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 解決辦法:git init 錯(cuò)誤信息指出不是一個(gè)git倉(cāng)庫(kù),或者它的父級(jí)目錄也不是git倉(cāng)庫(kù)。請(qǐng)確保您在正確的目錄中執(zhí)行g(shù)it命令,并且該目錄是一個(gè)有效的

    2024年02月05日
    瀏覽(97)
  • 如何解決go.mod file not found in current directory or any parent directory?

    環(huán)境變量配置: 假如安裝路徑: /usr/local/go 那么這樣配置環(huán)境變量: vi ~/.bash_profile 然后保存,執(zhí)行source ~/.bash_profile 報(bào)錯(cuò)go.mod file not found in current directory or any parent directory? 解決: go env -w GO111MODULE=auto OK,問(wèn)題解決

    2024年02月12日
    瀏覽(25)
  • git 解決 “fatal: Could not read from remote repository.“

    git 解決 “fatal: Could not read from remote repository.“

    現(xiàn)象 在使用Git將本地倉(cāng)庫(kù)推送到遠(yuǎn)程倉(cāng)庫(kù)的時(shí)候,發(fā)生了如下錯(cuò)誤:“fatal: Could not read from remote repository.” ? 原因 出現(xiàn)這錯(cuò)誤一般是以下兩種原因: 客戶端與服務(wù)端未生成 ssh key 客戶端與服務(wù)端的ssh key不匹配 為解決以上問(wèn)題,我們需要重新生成一次ssh key ,并重新配置一

    2024年02月09日
    瀏覽(26)
  • git clone 報(bào)錯(cuò):fatal: Unencrypted HTTP is not supported for GitLab. Ensure the repository remote URL i

    git clone 報(bào)錯(cuò):fatal: Unencrypted HTTP is not supported for GitLab. Ensure the repository remote URL i

    ?git版本問(wèn)題,是當(dāng)前版本過(guò)高,要求使用https協(xié)議,需要根據(jù)需要安裝指定版本。遇到這個(gè)問(wèn)題時(shí)我的git版本是: ?需要安裝指定版本。

    2024年02月11日
    瀏覽(22)
  • git clone出現(xiàn)fatal: Could not read from remote repository解決辦法

    git clone出現(xiàn)fatal: Could not read from remote repository解決辦法

    在git clone一個(gè)項(xiàng)目時(shí)出現(xiàn)如下報(bào)錯(cuò): (第一個(gè)選項(xiàng),問(wèn)你是否繼續(xù)連接?輸入yes然后回車(chē)) 通過(guò)報(bào)錯(cuò)信息可以看出,這是因?yàn)镚ithub上沒(méi)有本機(jī)的公鑰導(dǎo)致的。 其中雙引號(hào)中填自己Github注冊(cè)賬號(hào)用的郵箱地址。 點(diǎn)擊回車(chē),看到提示 說(shuō)明:前三個(gè)冒號(hào)分別讓你輸入保存公鑰的

    2023年04月15日
    瀏覽(28)
  • [Go 報(bào)錯(cuò)] go: go.mod file not found in current directory or any parent directory

    [Go 報(bào)錯(cuò)] go: go.mod file not found in current directory or any parent directory

    Build Error: go build -o c:Users13283Desktopgodemo__debug_bin3410376605.exe -gcflags all=-N -l . go: go.mod file not found in current directory or any parent directory; see \\\'go help modules\\\' (exit status 1) go 的環(huán)境配置問(wèn)題。與 golang 的包管理有關(guān) 如果你是 Windows 系統(tǒng),快捷鍵 “Win+R”,輸入cmd,打開(kāi)終端。輸入: 解

    2024年02月09日
    瀏覽(19)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包