Hello Shreyash Choudhary,
Welcome to the MS Q&A platform.
While moving your pipelines from dev to UAT and PROD, you will need to parameterize connection strings, update the source and destination resources in the pipeline to point to the correct resources in the target environment, parameterize any pipeline parameters etc.
You can use the template parameter definition file to parametrize the values and on the release pipeline you can override the values on the override parameters section.
We have very good documentation on automating the CICD deployment using Azure DevOps.
Here you can choose Github as your source repository instead of the Azure DevOps.
Reference documents:
https://learn.microsoft.com/en-us/azure/synapse-analytics/cicd/continuous-integration-delivery
https://learn.microsoft.com/en-us/azure/synapse-analytics/cicd/source-control
I hope this helps. Please let me know if you have any specific questions.