为什么承诺一个项目承诺解决方案? [英] Committing a project commits to the solution, why?

查看:142
本文介绍了为什么承诺一个项目承诺解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在解决方案中提交项目时,如果我进入Git Bash并执行一些 git log ,则没有任何提交出现在项目文件夹中,但是他们都出现在解决方案文件夹中。



对于每个项目提交而不是解决方案,应该怎么做? / p>

我应该自己在Git Bash上完成所有工作,而不是使用IDE吗?

解决方案




我应该在Git Bash上自己做所有事情而不是使用IDE吗?



你应该。



而且(IMO)有这样的理由:




  • 如果您切换开发环境(例如,删除VS并选择Eclipse),您仍然知道您的版本控制

  • 您不仅可以在VS中使用版本控制,而且可以使用版本控制您不使用VS编辑的东西

  • 只有命令行才能为您提供Git的全部功能。我不知道任何不会隐藏Git重要部分的工具。
  • 您决定回购结构,而不是IDE <我几乎不相信VS为每个项目或每个解决方案创建了回购站,你真的认真对待这个问题吗?你应该是创建回购站的人!)


不要误解我的意思:VS提供了迄今为止我见过的最好的调试器

但是当涉及到版本控制时,我相信控制台。



其他人没有。






em> Awesome-Command-Line-Vs-Crippled-Other-Tools 主题:


Whenever I commit a project in a solution, if I go to a Git Bash and do some git log, none of the commits are present in the project folder, however they're all present on the solution folder.

How is one supposed to do for having commits per project rather than for the solution ?

Should I just do everything by myself on the Git Bash rather than using the IDE ?

解决方案

Should I just do everything by myself on the Git Bash rather than using the IDE ?

YES

you should.

And there are (IMO) good reasons to do so:

  • if you switch your dev environment (e.g. drop VS and choose Eclipse), you still know your version control
  • you could use version control not only from within VS but also for versioning things you don't edit with VS
  • only the command line gives you the full functionality of Git. I don't know any tool that doesn't hide important parts of Git.
  • YOU decide the repo structure, not the IDE (I could hardly believe that VS creates repos per-project or per-solution. Are you really serious with that? YOU should be the one creating a repo!)

Don't get me wrong: VS provides by far the best debugger I've ever seen.
But when it comes to version control, I trust the console.

Nobody else.


Some questions related to the Awesome-Command-Line-Vs-Crippled-Other-Tools topic:

这篇关于为什么承诺一个项目承诺解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆