Git

Pages in this section

  • Pre-commit hooks
    Last edited: 2023-11-11

    Pre-commit hooks are a great way to run checks against your code before it is committed to the repository. This saves time and money by not having to run checks in the CI/CD pipeline, and also puts control of your commits back in your hands.

    # Setting up pre-commit hooks

    You can install the pre-commit package using pip.

  • Using multiple git profiles
    Last edited: 2023-11-11

    # Issue

    I am using a laptop where I have my personal repositories and some work ones. I would like to commit to these using different profiles and secure them using different SSH keys .

    # Assumptions

    I will assume you are: