标签: github-for-windows

将diffmerge设置为可视Git difftool不起作用

我试图在Git中将DiffMerge配置为我的difftool,但没有运气.这是我的.gitconfig文件的一个重要部分(未显示的其他设置仅适用于用户).

[diff]
        tool = diffmerge
[difftool "diffmerge"]
        cmd = \"C:\\Program Files\\SourceGear\\Common\\DiffMerge\\sgdm.exe\" \"$LOCAL\" \"$REMOTE\"
Run Code Online (Sandbox Code Playgroud)

每当我git difftool从powershell命令行调用时,冲突都会直接显示在powershell界面的下方,而不是按预期在diffmerge中显示.我知道git会选择设置,因为当我检查全局配置时,我会从配置文件中获取设置:

git config --global --get-all difftool.diffmerge.cmd
"C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" "$LOCAL" "$REMOTE"
Run Code Online (Sandbox Code Playgroud)

我正在运行powershell而不是git bash.这是因为我为windows安装了github,它提供了powershell作为git的shell,所以我不需要安装bash(还).Git版本是1.7.11.msysgit.0.

git powershell diffmerge git-config github-for-windows

3
推荐指数
1
解决办法
3625
查看次数

Git gui用于windows checkout,分支,提交和拉取更改

自从过去5年以来我一直在使用SVN,我是GIT的新手,我对基本操作的git存储库使用几乎没有什么困惑,并且通过查看许多教程和视频找不到我的答案,希望有一个人可以从这里回答我的问题题.

我使用GIT GUI成功完成的步骤.

Step 1- I create two folders on the c: Project-clone-1 and project-clone-2
Step 2- Then i clone Project1(which is on github cloud public server) in 'Project-clone-1' then in 'project-clone-2'

What i want to achieve by creating two copies of same repository is to observe if i commit any change from 'Project-clone-1' and then would like to go to 'project-clone-2' to pull and see if changes comes there.

Step 3- i made some change in a file which …
Run Code Online (Sandbox Code Playgroud)

git git-gui github-for-windows

3
推荐指数
1
解决办法
2万
查看次数

在GitHub for Windows中编辑不正确的提交消息

我已经成功地将提交消息弄糟,当我读回来时,即使我无法解决所说的内容!

此提交尚未推送,我知道可以使用以下命令更改消息:

git commit --amend -m "New commit message"
Run Code Online (Sandbox Code Playgroud)

(感谢这篇文章)

但是,我正在使用GitHub for Windows GUI.那么有没有办法让我在不跳进PowerShell的情况下更改提交消息?

git github git-amend git-commit github-for-windows

3
推荐指数
1
解决办法
1991
查看次数

Github for Windows将回购置于"重新定位"状态,但表示"未能同步此分支"

有时当我按下SyncGithub for Windows上的按钮时,它会告诉我:

Failed to sync this branch
You might need to open a shell and debug the state of this repo
Run Code Online (Sandbox Code Playgroud)

然后我去控制台输入一个git status.大部分时间发生这种情况时,会git status告诉我以下信息:

> git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

You are currently rebasing.
  (all conflicts fixed: run "git rebase --continue")

nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)

如果我理解正确的话,那么:

  • Github for Windows开始了Rebase操作,但由于某种原因没有成功.
  • 工作副本很干净.没有可以被同步覆盖的已更改文件,也没有冲突.
  • 一旦所有冲突得到解决,Git告诉我继续进行rebase操作(尽管在这种情况下,没有冲突).

> git rebase …

git github github-for-windows

3
推荐指数
1
解决办法
291
查看次数

GitHub客户端:缺少拉取请求按钮

我在Bitbucket存储库中使用GitHub客户端.所有工作和正确同步,但不显示拉请求按钮.在GitHub回购所有的工作.

我发现了类似的问题 - Github for Mac:Pull Request Button丢失了,但是我使用了Bitbucket并且无法从"other"更改repo标记.

任何建议?

GitHub的:

其他回购:

git github pull-request github-for-windows

3
推荐指数
1
解决办法
2230
查看次数

无法推送到github,远程端意外挂掉

我正在尝试通过 Github 上的源代码管理上传一个相对较大的虚幻引擎 4 项目。

它上传完全,当它达到 100% 时,它失败并给出以下错误:

Writing objects: 100% (8901/8901), 11.30 GiB | 33.67 MiB/s   
Writing objects: 100% (8901/8901), 11.32 GiB | 31.25 MiB/s, done.
Total 8901 (delta 632), reused 8579 (delta 403)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 Send failure: Connection was reset
Everything up-to-date

(The error was parsed as 4: The remote disconnected. Check your Internet connection and try again.)
Run Code Online (Sandbox Code Playgroud)

我的连接没问题,因为我试了好几次,总是100%失败。

我用 Sourcetree …

push github git-push github-for-windows atlassian-sourcetree

3
推荐指数
1
解决办法
1万
查看次数

Windows 版 Git:在命令 git config --list 之后无法运行任何命令

我在 Windows 7 环境中使用 git bash。我启动 git bash 并输入git config --list,但之后我无法运行任何命令,并且 git bash 仅显示(end)在屏幕中。我不知道发生了什么,该命令之前工作正常。
截图:

第一次错误

第二次错误

git command-line github git-bash github-for-windows

3
推荐指数
1
解决办法
1399
查看次数

GitHub for Windows显示旧的README文本

右边有一个面板,可以显示README.MD的当前内容.但是,我注意到在更改REAMDE.MD的内容之后还没有更新面板中的文本.有没有办法强行刷新它?

我拥有的GitHub版本是1.0.41.2(fd3fd236ac85e622194e88f248576b9fe25d28d4)

github-for-windows

2
推荐指数
1
解决办法
1827
查看次数

Github显示新提交的空更改

我的Github for windows显示了一些要更改的文件,但是当我比较文件时它们是相同的!

我在这里截图:

链接到图像

我实际上可以编辑这些文件,然后错误消失,但随后随机返回一个新文件...

有任何想法吗?

git github github-for-windows

2
推荐指数
1
解决办法
1962
查看次数

在GashHub for Windows的bash中安装Git-Flow时出错

我对Git很新,并开始使用GitHub for Windows.现在我已经学会了如何打开一个Git bash ....并想要将Git Flow安装到其中.

我正在尝试按照这里的步骤: - https://github.com/nvie/gitflow/wiki/Windows

在安装过程中,当我尝试使用PortableGit文件夹的路径运行msysgit-install脚本时,脚本无法说:

contrib/msysgit-install.cmd: line 1: @echo: command not found
contrib/msysgit-install.cmd: line 2: setlocal: command not found
Run Code Online (Sandbox Code Playgroud)

等等...

有什么我做错了,还是我的bash没有正确设置?

我通过右键单击GitHub for Windows中的项目并选择"在这里打开shell"来访问bash.

请帮忙.

git github git-flow github-for-windows

2
推荐指数
2
解决办法
3745
查看次数