Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
919 views
in Technique[技术] by (71.8m points)

git - Committing a project commits to the solution, why?

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 ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...