5 ms·
Ask HN: git-svn resources?
Hi folks,
I have used git for brief periods (as a student), and would like to continue using it, but the company I work for uses svn. I do not like svn.
I noticed that you could still use git + svn, via git-svn, where there is a 'two-tiered' commit system. I want to use this primarily to be able to make branches at will, try out code, and commit the branch if everything goes well. This process is not easy in svn.
Could you point me to resources about git-svn?
Also, it would be great if you could recommend a git book to me --- there's a lot of cool things that could be done with git, only I need to know where to look!
Thanks
- notaddicted 17y agoI have this bookmarked: http://andy.delcambre.com/2008/03/04/git-svn-workflow.html http://andy.delcambre.com/2008/03/04/git-svn-workflow.html
- angelbob 17y agoHere's one I liked: http://flavio.castelli.name/howto_use_git_with_svn http://flavio.castelli.name/howto_use_git_with_svn
- boyter 17y agoThis is going to sound rude, but how about you do what the people paying you tell you to do? Thats why they give you money, to provide them value which you will not be doing while trying to circumvent their procedures and rules. Maybe they evaluated GIT and decided their business case suited SVN more? You wouldnt code your stuff in PHP if they are an ASP.NET shop because you like PHP more would you? By all means try to educate them to use what you feel is a better tool, but until then suck it up and do what everyone else is doing.
- aquadoctorbob 17y agoI think you've misinterpreted the OP or the purpose of svn-git -- that programming language metaphor doesn't work at all. Rather, everybody at his job uses Notepad and he'd like to use vim. It improves his performance and affects nobody else.
- boyter 17y agoPerhaps. But think of it this way, if he wastes any time figuring out how to do something using GIT or corrupts the repository, or breaks something and has to spend time fixing it, the time is on his hands. If you are using SVN like everyone else then its not your issue. I have found in the workplace it is better to stick to what they supply and ask you to use and change it by pushing people in the right direction then to assume you know better and do your own thing. Look at it from the employeers perspective. If you say use SVN and someone says "Pffft I will use GIT" and then they loose a days work because of it who am I going to blame?
- rmk 17y agoYou are assuming that the employer doesn't care about improved workflows, and also that the employer has already evaluated git thoroughly. Ever considered that you might be wrong on both counts?
- boyter 17y agoYes I have. If you think circumventing the procedures your workplace follows because you dont like them is going to endear you to your employeers then go ahead. Part of being in a workplace is following the rules. Dont like them? Then change them internally or leave. People who are not team players are not useful in the workplace no matter how productive they are individually.
- rmk 17y agoI think you are mistaken. We are starting to institute procedures, and the boss is very reasonable. He'll accept a solution in which the workflows are more natural. He has accepted procedures / choices that I have advocated in the past (with well-reasoned arguments in support of my choices, of course). Arguing that the 'main' repo has to be git is a tough sell, but I think we'll get there eventually, once we show how much easier experimental branching, disconnected operation, distributed nature etc will be advantageous to us. The git-svn solution is pretty good, because the main repo will be svn, and people who are used to svn (and like the restrictions that come with it) will be happy as well. Git users will also be able to get all the benefits of using it..