English 中文(简体)
对VS2010解决方案的改动赢得了对Gite Hub存放处的承诺。
原标题:Changes to VS2010 solution won t commit to GitHub repository

自从我开始使用吉特语以来,我一直没有时间。 这是我想说的学习曲线。 我在阅读手册和FAQ以及其他几个网站时,我仍然看不到我所期望和希望有人使用VS2010与Gi/2007/5的人会给我所需要的神职人员。

这些是我为建立一个新的项目/保存人所采取的步骤。

1.在Gite Hub<>/strong>上设立新的存放处——将其命名并创建<>。

2.在VS2010上创造我的解决办法

3。

These are the steps that I take to commit the solution for the first time: (I have git and git extensions installed and I have a VS Toolbar created that allows me to pop up the git bash from within VS2010)

我点击了Gite Console 纽顿 I在工具栏上创建的,我获得了双目窗口,目前的名录是我的解决方案的基本目录。

然后,我执行这些指挥,向Gite Hub场址的Gite Hub存放处提供我的解决办法。

<>1.git init - per/em>

<>strong>2. git Add. - per/em>

3. git commitments -m 第一版<> - per/em>

3. git Yong Add origin:alfalfastrange/RepositoryName.git - per/em>

<>strong>4. gitrove -u origin Master - I , 后处理时附有拒绝电文和一幅有关快速通道的错误......

5.git 拖拉机原主 - per/em>

6. gitzan-u origin Master - the commitments work and I can see the full Solutions online on Git Hub

现在,我从这里来的问题是......如果我提出并改变我的解决办法,我就不能把这些问题变成Gite Hub。 例如,我删除档案、增加档案和增加代码等,然后,我准备进行所有这些改动。

我曾尝试过这些事件,没有幸运。

<>strong>1. git Add.

2. git commit -m Second commit - adds changes to the local repository

<>strong>3. git re-u origin Master - Am , 发出以下信息:所有事项均已更新,我检查在线存放处,没有改动<>。

4. git pull origin master - Am told everything already up to date

5. git push -u origin master - Am given message that everything is up to date, I check the online repository and there have been no changes made

<>strong>6. gitzan origin Master - Am, 发出如下信息:所有事项均已更新,我检查在线存放处,没有改动<>。

从那时起,所有承诺似乎都是对当地存放处进行更改,而我所尝试的任何指挥机构都不会把改变推向Gite Hub存放处。

So at this point I m slightly annoyed that it s not easier. With my Ankh SVN and Codesion setup all I have to do is click Commit or Update to push changes or pull latest from the online repository.

我失踪了什么? 因为我希望能够成功地利用Gite,而不必担心我的所有个人项目。 提前感谢!

<>>>>>

在管理集体事务组之后——指挥结果就是

“enterography

Update 2

步骤1 - 6与步骤3相加

enter image description here

<><>Update 3

接手指挥顺序后

“entergraph

这对我来说没有任何意义,因为我们已经做到了...... 仅使用Gite Bash

最佳回答

仅仅这样,人们就不必通过评论roll:

页: 1 (你还可以将这一步骤引入<代码>git 边远加,与-f上。) 一旦完成这项工作,你就可以与你的当地主人追踪远程主人。

一旦发现所有情况,最简单的工作流程就是这样:

# assuming an up-to-date branch and a dirty working copy
git add .   # Add changes under the current directory to the index
git commit -m "Commit message"
git push origin

您可推出<代码>add和commit。 进入一个步骤:

git commit -am "Commit message" # Commit changes in tracked files to your local repo

Keep in mind I have no idea how Gitextensions works; it probably has its own plugin-y stuff for this.

问题回答

你的第一个错误信息无疑是:

$ git push origin master
To ../remote/
 ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to  ../remote/ 

Which is normal, considering you had two parallel history going on: the one of GitHub (empty repo) and the one in your local repo. See also "I am not able to push on git?"
Once you you git pull, you merge the initial history of GitHub in your local repo, and make your first push successfully.

Now if the next git push (no need to add -u again by the way) reports that everything is up to date, check if you are not in a detached HEAD mode.
That would mean git branch would show no current branch (with * in front of it).
Other causes: "git says Everything up-to-date".





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...