![](/img/trans.png)
[英]git config insteadOf for https://host/project/<project>/repo/<repo>
git config <url>.insteadOf <url>對於簡單的 URL 方案(如 GitHub 或 GitLab)可以完美且輕松地工作。 在 corporate.network 我有 HTTPS URL,看起來像https://host/project/< ...
[英]git config insteadOf for https://host/project/<project>/repo/<repo>
git config <url>.insteadOf <url>對於簡單的 URL 方案(如 GitHub 或 GitLab)可以完美且輕松地工作。 在 corporate.network 我有 HTTPS URL,看起來像https://host/project/< ...
[英]git: detected dubious ownership in Azure Blob Storage mapped on a Azure VM
When I run git status , git branch --track , git fetch --all , git pull --all inside a git repository stored inside an Azure Blob Storage mapped to a ...
[英]How does GitHub decide which account made a commit. Does it have to do with personal access tokens?
我對 git 比較陌生。我一直在使用同一台計算機並擁有兩個不同的 GitHub 帳戶。 讓我們稱它為舊的和新的。 很久以前我使用舊的,現在當我嘗試將更改提交到我的新帳戶的存儲庫時,它顯示提交更改是由我的舊帳戶進行的。 我試圖通過使用這個命令來改變它: 現在,在 visual studio code ...
[英]Always use specified option when rebasing
我最近發現了 git git rebase的--committer-date-is-author-date選項。 每當我變基時,我都想將其設為全局默認值。 有沒有辦法修改.gitconfig以便始終使用此選項? ...
[英]git push hangs on the "Total" line only for a specific branch
我正在嘗試將特定本地分支上的 4 次提交推送到我位於私有 Git 服務器上的遠程存儲庫。 推送進度顯示如下: 它掛在“總計”行之后。 我試過等待超過 10 分鍾,但沒有運氣。 提交沒有任何大文件,都是帶有小改動的文本文件。 我根據對類似問題的回答嘗試了以下方法: 通過運行git config --g ...
[英]Did git configuration `branch.<name>.fetch` ever exist?
Git 配置branch.<name>.fetch在第一個git-fetch example 1中提到: 更新遠程跟蹤分支: 上述命令從遠程 refs/heads/ 命名空間復制所有分支並將它們存儲到本地 refs/remotes/origin/ 命名空間,除非使用 branch.. ...
[英]Git config remote.origin.tagOpt --no-tags has no apparent effect
每次我嘗試更新特定存儲庫時,它都會失敗,因為維護者會定期更改nightly標簽: 我在 .git/config 中添加了remote.origin.tagOpt = --no-tags 。 該設置顯然是無用的,因為它無論如何都會獲取標簽。 我也試過remote.origin.prune = true ...
[英]windows git shows difference for whole file
因為我正在為我的工作站使用以下設置窗戶,智能理念到目前為止,一切都在 intellij 的變化下運行良好,並且能夠使用git diff命令看到差異。 但現在突然間,即使我在 .java 文件中進行單行更改,它也會在git diff命令中顯示整個文件我還檢查了我的 intellij,它在右下角顯示了C ...
[英]Script to set multiple insteadOf cases in gitconfig
我需要一個腳本來確保.gitconfig文件中的以下內容: This is meant to ensure that the user will always clone with SSH and use the IP address instead of the HTTP address (bo ...
[英]Can git for-each-ref use options set with git-config?
后git config for-each-ref.count 2 跑步git for-each-ref refs/heads 顯示了很多 output,而git for-each-ref --count=2 refs/heads 根據需要只顯示兩個。 似乎git for-each-ref沒有 ...
[英]How to set git config values at runtime?
有沒有辦法在運行時將 git 配置選項傳遞給命令? 示例用例: git commit命令沒有-U選項(即git diff )來更改-v詳細 output 的上下文行,並且用戶不想在配置文件中設置diff.context ...
[英]How to resolve fatal: $HOME not set error?
我正在通過 Azure-pipleine.yml 文件在 linux 上運行git config --system user.email "<email>" 。 之后我得到fatal: $HOME not set這是什么錯誤,我該如何解決? ...
[英]Why is the master branch automatically deleted when I create a new branch?
我只是一個初學者,我練習了合並。 我刪除了我練習的文件夾A。 我創建了一個新文件夾 B。我在 B 做了以下工作。 master 分支消失了。 在 A 工作時可能有問題。 我的.git/config 如何檢查問題? 我是否更改了 git 設置? 我不知道怎么了。 請幫我 ...
[英]Git - What should I do about directory ownership change?
我最近在我的電腦上重新安裝了 Windows。 當我嘗試在我的另一個驅動器上的工作區中使用 Git 時 - 在 Windows 安裝之間保持不變 - 由於用戶 ID 不匹配,它會發出警告: 用戶名 - max - 與以前相同,但我猜 Git bash 使用 Windows 安裝中的某些內容來確定底 ...
[英]How do I find a mixed case entry in .gitmodules using `--get-regexp`?
我在.gitmodules中定義了一個子模塊 我正在嘗試使用git config -f.gitmodules --get-regexp "FastFold.path"獲取路徑,但是該命令不返回任何退出代碼為1 (不匹配)。 --get-regexp state 的文檔正則表達式匹配目前區分大小寫 ...
[英]Is it ok to edit .git/config file in repository manually?
我曾經手動編輯.git/config文件,例如添加存儲庫、設置上游存儲庫等,基於它在其他.git/config文件中的外觀。 我的同事建議我不要這樣做,因為我可以在那里弄得一團糟(作為一般規則,不是基於我所做的事情)。 他告訴我使用命令,這對我來說更難,因為我總是要檢查它們。 我更喜歡從“一切都是 ...
[英]What's the default value for Git `rebase.instructionFormat` config variable?
Git 2.6 添加了rebase.instructionFormat配置變量,用於配置交互式 rebase 指令行的格式。 根據文檔,可以選擇的不同格式選項來自git log 。 但是文檔沒有 state,如果要開始自定義此配置,該變量的默認值是多少? ...
[英]Reset external diff tool per command
我最近安裝了一個新的差異工具( difftastic ),它與我將差異復制到剪貼板(或文件)以發送這些的習慣相混淆: 我的最終目標是有一個命令,我可以通過通常的 git diff arguments 並獲得原始命令(基本上類似於git diff --internal 。 最終我將 go 上游到 di ...
[英]How to prevent git global config from changing automatically?
我的目標是使全局 git 配置name和email空。 我可以這樣做,但過了一段時間它會重置為我不再使用的舊 email。 我不確定我的/home/<user>/.gitconfig為什么或如何更改,但它在我不知情的情況下發生了變化。 我在 Ubuntu 18.04,git 2.17. ...
[英]How to unset default git user on cloned repositories?
我在不同的 git repos 中使用不同的電子郵件和用戶。 我的 git 全局配置文件未設置用戶部分。 在這里(注意[user]之后什么都沒有): 每當我克隆一個新的 git 存儲庫時,git local config 用戶名和電子郵件總是與我在其他存儲庫之一中使用的用戶一起設置,盡管未設置全 ...