Committing a project commits to the solution, why?

痞子三分冷 提交于 2019-12-18 07:22:48

问题


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 ?


回答1:


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:

  • Is it a good practise to do version control from outside the IDE?
  • Does netbeans ignore my git pre-commit hook?
  • Can you interact with the index/staging area with TortoiseGit?
  • Does TortoiseGit actually make Git a lot easier to use like TortoiseSVN?


来源:https://stackoverflow.com/questions/21185504/committing-a-project-commits-to-the-solution-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!