问题标签 [tortoisegit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
git - Git'致命:没有这样的参考:HEAD'
我的 git 存储库发生了一件奇怪的事情。当我尝试在 tortoisegit 窗口中提交某些内容时,我会收到来自项目的所有文件。我无法恢复它们,当我从服务器拉出时,我收到fatal: No such ref: HEAD
和fatal: Cannot lock the ref 'HEAD'
. 我所有的当地分支机构都不见了。有没有办法解决这个问题?
这不是第一次提交或其他什么。这件事突然发生了。
编辑:
git branch -a
说:Failed to resolve HEAD as a valid ref
git status
打印所有标记为新文件的项目文件。
我更改了存储库文件夹名称一段时间,当我将其更改回来时,情况不正确。
tortoisegit - TortoiseGit 问题“是文件”
我会很高兴提出任何建议,而不仅仅是答案。
我的 TortoiseGit 在我的 Win7 64 位机器上出现故障。
请注意,我仍然可以使用我的 github 存储库从命令行正常工作。
问题
- 右键单击 rep\commit 给出以下内容:
- 单个修改文件名为:
Is-files
没有扩展名和状态conflict
(我没有这样的文件) - Single Not Versioned file named:
git: 'File' is not a git command. See 'git --help'. Did you mean this?Is-files
with extension.Did you mean this?Is-files
and with statusUnknown
(当然我没有这样的文件)
- 单个修改文件名为:
- 尝试右键单击 rep\settings\remotes 我得到一个弹出窗口说:
git: 'Files' is not a git command. See 'git --help'. Did you mean this? Is-files
用一个确定按钮。然后单击确定显示一个空的远程列表。请注意,当我git remote
在命令行中输入时,我确实得到了遥控器列表。
我所有的存储库都有问题
我尝试过的事情
- 卸载\重新安装 TortoiseGit 和 msysgit
- 各种 TortoiseGit 版本:1.6.3.0 和 1.6.2.0
- 混帐 gc
- git fsck
- git 修剪
我正在使用 msysgit 1.7.3.1
svn - Using git as a better SVN
We were an SVN shop - now we use git (cos all the cool kids are doing it).
Each dev checks in code locally on their own git tree while working on new features.
When some work is ready to submit to the main repository we have a directory on a shared drive for each project. We then do a git push
to that repo, and either a git sync
or git pull
to update an individual dev machine from the 'one true source'.
We had one accident when someone did a push to the repository and somehow managed to replace the main repo with the dev machine's version of it's own git tree.
Is this the best 'git' way of doing things?
We are on two sites but the shared directory is common. A small number of devs who can generally avoid major clashes on the code area. All on Windows, using TortoiseGit, security is not too important but we have no admin support so a complex server solution is out.
windows - 将 TortoiseHg 移植到使用 Git 是否容易?
TortoiseHg 在许多功能上都优于 TortoiseGit。是否需要更改几行代码以基于 TortoiseHg 制作新的 TortoiseGit,或者需要数周/数月的开发?
git - 如何比较 Git 中的变更集?
Git 可以很容易地比较提交之间的差异,例如使用 git 命令 diff 和 difftool。同样在 TortoiseGit 中,您只需选择两个提交来比较它们。
但是有没有办法比较变更集?换句话说:查看一组提交的差异与另一组提交的差异之间的差异。
这对于比较精选或已重新设置的(一组)提交非常方便。
git - 设置 Git/TortoiseGit 和 Dreamhost 时遇到问题
所以我有一个 DH 托管的域,我想将我的所有 git 存储库保存在 git.mydomain.com,并且 git 安装在服务器上,以及在 Windows 上本地使用 msysgit。我正在使用 TortoiseGit,在我的服务器上放置了一个 putty 生成的密钥,这样我就可以使用 ssh 并在 myproj.git 初始化一个裸 git 存储库。但是,当我尝试克隆本地版本时,我不断收到此消息并且不知道如何调试它,甚至不知道如何理解它,因为我知道 myproj.git 是一个 git 存储库。
它在 user@git.mydomain.com 上询问我的密码,所以我知道密钥正在工作,或者至少我认为是,所以我只是很困惑为什么我会收到这条消息,即使它是git 存储库。
谢谢您的帮助!
windows - 使用 git 和 tortoisegit 在 Windows XP 上进行身份验证失败
我的身份验证一直失败。我已经创建了我的 SSH 密钥,并且本地 git 管理员已经导入了公钥,但仍然提示我输入密码:
- 我的 SSH 密钥是无密码的并且位于“
C:\Documents and Settings\username\.ssh
”下,我还将它们复制到“C:\Documents and Settings\username\ssh
”(没有前面的点)只是为了更好地衡量。 - 在 Windows 环境变量屏幕中,
HOME
系统变量设置为我的用户的正确目录。
git - TortoiseGit 使用了错误的 SSH 密钥
目前我对乌龟 git 有一个奇怪的问题,我无法弄清楚。尝试提交到我在 github 上的存储库时出现错误
错误:对 martindevans/Hermes.git 的权限拒绝 key2
Key2 是我用来访问不同 github 存储库的密钥,但是远程 url 未设置为使用 key2,正如您在此处看到的那样,它被设置为使用 private.ppk
我是在做明显错误的事情,还是乌龟 git 坏了?
NB。回应评论。使用普通 git 会导致:
windows - Git 推送命令不适用于 msysgit 设置
我按照以下说明将 GIT 安装到我的 windows 2k8 服务器上:http ://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP
除了“push”命令外,所有命令都可以正常工作。我收到此错误:
git.exe push -v "origin" master:master
git: '/path/to/repo' 不是 git 命令。请参阅“git --help”。推送到 user@ipaddress/path/to/repo 致命:远程端意外挂断
有谁知道如何解决这一问题?