草庐IT

create_time

全部标签

Git 提交样式 : All changed files at once or one at a time?

我在晚上通过对多个文件的一次提交来保存我的工作。我想知道为每个文件提交是否会更好,但这似乎需要做更多的工作。我对现在的方式没有问题,但我计划将我的代码放在GitHub上,我希望它易于理解。我想知道其他使用git的人在做什么。另外,如果你能帮我拼出来。我是Git的新手,我一直在Windows中使用TortoiseGit和gitk。 最佳答案 何时提交以及提交什么是一门艺术,没有非黑即白的规则。也就是说,有些习惯比其他习惯更容易理解。一般来说,我认为您应该优化您的提交以提高可理解性-如果您返回并阅读提交的差异,您能弄清楚您在更改中完成了

git - 为什么 Visual Studio 2015 中的 "Create Pull Request"菜单项总是被禁用?

无论我尝试什么,这个菜单项似乎永远不会“启用”:我错过了什么?这是在VS2015Update1中指向TFS2015上的Git存储库。 最佳答案 在我的例子中,我的本地git存储库没有与TFS“关联”。Thispost帮助我找到了解决方案。在团队资源管理器中,转到“管理连接”->“连接到团队项目”,这将打开此窗口。从这里检查git存储库应该关联的团队项目。这样做之后,团队项目现在应该显示在团队资源管理器中。在新添加的团队项目上右键单击“连接”。 关于git-为什么VisualStudio2

git - 为什么 Visual Studio 2015 中的 "Create Pull Request"菜单项总是被禁用?

无论我尝试什么,这个菜单项似乎永远不会“启用”:我错过了什么?这是在VS2015Update1中指向TFS2015上的Git存储库。 最佳答案 在我的例子中,我的本地git存储库没有与TFS“关联”。Thispost帮助我找到了解决方案。在团队资源管理器中,转到“管理连接”->“连接到团队项目”,这将打开此窗口。从这里检查git存储库应该关联的团队项目。这样做之后,团队项目现在应该显示在团队资源管理器中。在新添加的团队项目上右键单击“连接”。 关于git-为什么VisualStudio2

GitHub 错误 - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository."

我想将一个存储库从我的计算机推送到GitHub。我设置远程原点gitremoteaddorigingit@github.com:alicht/tweetanuber.git然后在我尝试推送到GitHub之后gitpush-uoriginmaster我遇到了这个错误:ssh:connecttohostgithub.comport22:Operationtimedoutfatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.如何解决此问题

GitHub 错误 - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository."

我想将一个存储库从我的计算机推送到GitHub。我设置远程原点gitremoteaddorigingit@github.com:alicht/tweetanuber.git然后在我尝试推送到GitHub之后gitpush-uoriginmaster我遇到了这个错误:ssh:connecttohostgithub.comport22:Operationtimedoutfatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.如何解决此问题

git 请求 pull : how to create a (github) pull request on the command line?

我克隆了一个项目,并将一个只有重命名的自述文件的分支推送到自述文件。我正在尝试在命令行上创建一个pull请求,只是为了从这里而不是网站尝试PR。$gitrequest-pullorigin/masteroriginreadme:readmeThefollowingchangessincecommit51320a3a42f82ba83cd7919d24ac4aa5c4c99ac6:firstcommitmessageareavailableinthegitrepositoryat:git@github.com:example/com:example.gitreadmeforyoutofe

git 请求 pull : how to create a (github) pull request on the command line?

我克隆了一个项目,并将一个只有重命名的自述文件的分支推送到自述文件。我正在尝试在命令行上创建一个pull请求,只是为了从这里而不是网站尝试PR。$gitrequest-pullorigin/masteroriginreadme:readmeThefollowingchangessincecommit51320a3a42f82ba83cd7919d24ac4aa5c4c99ac6:firstcommitmessageareavailableinthegitrepositoryat:git@github.com:example/com:example.gitreadmeforyoutofe

GitHub git 远程添加源 git@github.com :username/ProjectName a one time process?

如果我的机器上有两个git项目有两个不同的项目名称我可以在这样的两个目录中使用这段代码来管理它吗/foo1$gitremoteaddorigingit@github.com:username/ProjectName-1/foo2$gitremoteaddorigingit@github.com:username/ProjectName-2它是存储在目录中还是系统中的git配置文件中? 最佳答案 信息存储在每个存储库(项目)的.git/config文件中。是您通过将Remote分别添加到每个存储库来做正确的事情。

GitHub git 远程添加源 git@github.com :username/ProjectName a one time process?

如果我的机器上有两个git项目有两个不同的项目名称我可以在这样的两个目录中使用这段代码来管理它吗/foo1$gitremoteaddorigingit@github.com:username/ProjectName-1/foo2$gitremoteaddorigingit@github.com:username/ProjectName-2它是存储在目录中还是系统中的git配置文件中? 最佳答案 信息存储在每个存储库(项目)的.git/config文件中。是您通过将Remote分别添加到每个存储库来做正确的事情。

git - git stash create 和 git stash store 的目的是什么?

来自git-scm处的文档,有两个gitstash命令提到与脚本相关,但不是一般用途:createCreateastash(whichisaregularcommitobject)andreturnitsobjectname,withoutstoringitanywhereintherefnamespace.Thisisintendedtobeusefulforscripts.Itisprobablynotthecommandyouwanttouse;see"save"above.storeStoreagivenstashcreatedviagitstashcreate(whichis