As all good data engineering tool, SSIS is compatible with Git and Github. Just like Git would with other types of files and pieces of code, Git can recognise changes in an SSIS file and allows you to track changes, collaborate as a team, roll back to earlier versions and more. These are essential practices in any working environment and especially when working in a CI/CD environment.
To set up Git or Github in SSIS, you'll first need to create a new project. In the tab at the top, click on git and on Create a Git Repository or on Clone Repository to select you're working environment. This is where your changes will be tracked.

I will be working locally for this, you can also connect to Github or Azure DevOps, the concepts of how to use it remain the same, differences just come from having to log into an account.

You can decide to add a read me or not then just hit create! This will open the Git Repository View, that's where you can see your local history, changes made, different branches etc. Back in the top tab under view, you can select Git Changes or Git Repository. Let's say we drag a new data flow task into our Control flow and then hit the Git Changes tab. You should see the content of this screenshot:

From there, you can create a new branch to work on, write a commit message and commit your changes. Clicking save and commit will ask you to confirm to save this commit. If you click view your commit you will be brought back to the Git view showing your local history, but you'll now see your new branch and the changes made onto it:

Now let's say you want to revert to one of the previous commits, it's easy just right click the version and select Revert!

Under Git you can also open Git in command line to use it directly from the terminal. If you are using Github or AzureDevOps you are able to push your work to your cloud directory and merge it or perform any actions directly on these platforms.
I would suggest to use the local repository only to work on solo projects, to collaborate, both Github and AzureDevOps, the later even providing additional integrations for SSIS and other Microsoft products.