草庐IT

Hotel_Name

全部标签

windows - 在 Windows 下使用 ssh 克隆 github.com 的 repo 时出现 "no address associated with name"错误

Searchinggooglefor+github+ssh"noaddressassociatedwithname"给出以下SO问题作为前4个结果:githubnoaddressassociatedwithnameGithubpushoriginmasternotworkingSyncingwithgithubGITHUBsetup-noaddressassociatedwithname不过,他们都没有回答我的问题。c:\ProgramFiles(x86)\Git\bin>git--versiongitversion1.7.7.1.msysgit.0c:\ProgramFiles(x8

git checkout-index : unable to create file (File name too long)

我检查了我的存储库,但有一个文件名太长:~/git$gitclonegit+ssh://server/git/ma.gitInitializedemptyGitrepositoryin~/git/ma/.git/remote:Countingobjects:1855,done.remote:Compressingobjects:100%(1594/1594),done.remote:Total1855(delta656),reused1078(delta222)Receivingobjects:100%(1855/1855),54.14MiB|701KiB/s,done.Resolvi

git - 根据远程克隆 URL 为 Git 配置使用不同的 user.email 和 user.name

我像这样配置全局~/.gitconfig属性user.name和user.email:gitconfig--globaluser.email"mkobit@example.com"gitconfig--globaluser.name"mkobit"这是我在处理个人项目、开源项目等时想要的默认配置。当我处理来自特定域(例如公司域)的项目时,我在克隆它时为每个存储库配置它,以便它使用不同的user.name/user.email:gitclonessh://git@git.mycorp.com:1234/groupA/projectA.gitcdprojectAgitconfiguser.

eclipse - git gc/git gui : Unlink of file <internal pack file name> failed

git的运行版本1.9.4.msysgit.0,我几乎每次运行gitgc在命令行上或通过gitgui当它提示我“压缩松散的对象”时:Countingobjects:1110956,done.Deltacompressionusingupto4threads.Compressingobjects:100%(269562/269562),done.Writingobjects:100%(1110956/1110956),done.Total1110956(delta636114),reused1110956(delta636114)Unlinkoffile'.git/objects/pac

git - 如何使用 GIT 集成在 Intellij 14 中设置 user.email 和 user.name?

我有集成了GIT的IntelliJ14。gitpush命令显示作者为unknown。如何在我的IntelliJIDE中设置以下两个参数?gitconfig--globaluser.name"SamSmith"gitconfig--globaluser.emailsam@example.com 最佳答案 Ctrl+K打开提交对话框在“Git/Author:”下pull字段中输入以下模式,用个人数据替换部分(保留空格和尖括号字符):NameSurname 关于git-如何使用GIT集成在In

git - 'git cat-file -p <sha1 >': "fatal : Not a valid object name"on random objects from . git/objects

我想了解更多关于git内部工作原理的信息,所以我运行了这些命令:cd.git/objects/62ls00cb2f01089db22aca24675272a16712e897470ee798881329430bfef6c558be7b14c1f0676f1087f408e2f2bd782d53a1211a7418fee4f6a7a6a71f3bd5a3af882f3f0ec4fad4c672055746f95e69f344b52c5038d922260189475626e69agitcat-file-p00cb2f01089db22aca24675272a16712e89747出现以下

git - 致命 : ambiguous argument '<branch_name>' : both revision and filename

这是我做的:我运行了gitcheckout-bbranch_name。我在branch_name上做了一些提交。我检查了master分支并进行了快速merge。当我运行gitlogbranch_name--oneline时,我收到以下消息:fatal:ambiguousargument'branch_name':bothrevisionandfilenameUse'--'toseparatepathsfromrevisions,likethis:'git[...]--[...]'可能是什么问题? 最佳答案 它告诉您您有一个名为“br

xcode - 工作副本 '<Project Name>' 无法提交文件 - 无法与助手应用程序通信

我刚刚更新到Xcode7通用版本并且我尝试提交文件。但是它失败了,我收到以下消息;我看过这个问题,但在OP问题中的二次响应不同:XcodeandGitSourceControl:“TheworkingcopyXXXXXfailedtocommitfiles”它正在寻找的“辅助应用程序”是什么?解决方案是什么?迁移到Xcode7和iOS9变得令人头疼:(我通过转到“源代码管理”->“提交”来提交我的文件 最佳答案 事实证明,“帮助应用程序”实际上是Git。出于某种原因,Xcode7渴望将您(提交者)与姓名和电子邮件地址相关联。要修复它

git - 是否可以在 .gitconfig 中为每个通配符域配置 user.name 和 user.email?

我有一台工作电脑,它在全局配置为在提交时使用我的工作电子邮件和姓名。这很好。但是,我想制定某种规则,“如果repo来源是github,请使用用户X和电子邮件Y”我知道你可以为每个存储库创建一个配置条目,但我希望它更加自动化:如果克隆是github,它应该使用github用户详细信息。如果我从工作克隆,它应该使用工作详细信息。有什么方法可以根据远程域进行全局配置吗?还是其他方式?编辑/更新我接受了下面的答案,但稍微修改了脚本:#!/usr/bin/envbash#"Real"gitisthesecondonereturnedby'which'REAL_GIT=$(which-agit|s

混帐 : fatal: Ambiguous object name: 'origin/release_2.6'

尝试创建远程跟踪分支时出现此错误gitco-brelease_2.6origin/release_2.6warning:refname'origin/release_2.6'isambiguous.warning:refname'origin/release_2.6'isambiguous.fatal:Ambiguousobjectname:'origin/release_2.6'.我只有这两个refs定义了release_2.6gitshow-ref|grep"release_2.6"a71b2da1526f73862464a23aceaa1939a8b1ace2refs/heads