Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
921 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 Answer

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:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...