Taro Logo

Gitting Good with Git

Profile picture
Data Engineer at Financial Company4 months ago

Git/version control is an important skill for people in tech. What are some ways to get good at it? It's often easy to do things in a hacky way when there is a git command that does exactly what you want to do that will save you a lot of time in the long run. Also, understanding the fundamentals of how Git works can go a long way.

What are some good tips? Other than Alex's primer, of course :)



  • 4
    Profile picture
    Senior Software Engineer [IC3] at Nvidia
    4 months ago

    This website is a solid interactive primer.

    Another option is whenever you have something new you are thinking about doing in Git, try asking ChatGPT. And maybe ask for further reading. Don't take it as absolute truth, but it's a great starting point.

  • 3
    Profile picture
    Tech Lead @ Robinhood, Meta, Course Hero
    4 months ago

    As always, I think the main avenue is experience. If you can't get this experience at work, a side project with other collaborators is the main way. If you can't find other collaborators just pretend you have them and follow best practices:

    1. Never push to main, writing to another branch instead
    2. Submit a pull request from each branch into main, making it clean and documenting it. Pretty much follow the advice here: One Diff, One Thesis - What Every Code Review Should Be Like
    3. Name your commits well and squash them accordingly
    4. If you want to go super crazy, you can have multiple feature branches, so you need to learn how to rebase them against main when they fall behind