问题:

当我尝试这样做时,我收到以下错误:

gitignore错误

显然,Windows资源管理器不允许我创建这种类型的文件模式。 我怎样才能克服这个问题?

When I try to do this, I get the following error:Obviously, Windows Explorer doesn’t allow me to create this type of file patterns.How can I overcome this problem?

问题:

我在我的项目中初始化了一个新的git,到目前为止我只有两个提交。 我的日志如下所示

git log
commit e515e5b8dcbd8f1ea4a7a7d4a1efb82a1a0aee7a
Author: Olkun Mustafa <[email protected]>
Date:   Fri Oct 3 10:04:20 2014 +0300

    Temp commit

commit 71781bf0a7807351a56d5155dac94169ea700527
Author: Olkun Mustafa <[email protected]>
Date:   Fri Oct 3 10:01:42 2014 +0300

    First Commit

当我尝试重新提交此提交时,我得到如下错误

git rebase --interactive HEAD~2
fatal: Needed a single revision
invalid upstream HEAD~2

我在谷歌研究,但到目前为止我还没有找到解决方案。

I initialized a new git in my project and I have only two commits so far.My log is like belowWhen I try to rebase this commits I get error like belowI quite research at google but I haven’t found solution till now.

问题:

我从Git那里收到了这条消息:

您要求从远程“原点”拉出,但没有指定分支。 因为这不是当前分支的默认配置远程,所以必须在命令行上指定分支。

有人能解释一下吗? 更重要的是如何解决它?

I got this message from Git:You asked to pull from the remote ‘origin’, but did not specify a branch.Because this is not the default configured remote for your current branch, you must specify a branch on the command line.Can anyone explain it?and more important how to fix it?

问题:

使用git从PC连接到github时出现问题。 系统赢7。

我通过代理建立了连接,因此我在git config文件中指定了它(在普通git文件夹中和git repo文件夹中)。 为此,我在git bush中输入了下一行:

$ git config --global http.proxy http://<username>:<userpsw>@<proxy>:<port>

它在其他程序(例如maven)上的工作方式如下所示:

<username> - my login to our corp system
<userpsw> -my password to corporat system
<proxy> - 10.65.64.77
<port> - 3128

但是当我尝试推送或克隆我的仓库时,我会收到

fatal: unable to access '<repo githup link>' Received HTTP code 407 from proxy after CONNECT

我已经尝试不仅输入用户名,还输入域\\用户名,如果代码语言表出现问题,请更改密码。 而且我什至输入了错误的密码。 错误保持不变。

当我输入“ 10.65.64.177.com”并尝试推送回购时,我收到:

fatal: unable to access '<repo github link>': Failed connect to github.com:3128; No error

只是不知道该尝试什么。

I have a problem while connecting to github from my PC, using git.System Win 7.I have connection through proxy, so i specified it in git config files (both in general git folder, and in git repo folder).To do this i entered next line to my git bush:The way it works on other programms (ex: maven) it looks like that:But when i try to push or to clone my repo, i receiveI try already to enter not just my username but domain\\username, changed my password in case there are problems with code language tables.And i even entered wrong password.Error stayed the same.When i entered in ‘10.65.64.177.com’ and tried to push repo, i received:Just don’t know what to try.