function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vandana Rattan 4Vandana Rattan 4 

VScode Git Change Management

I am using VSCode as code editor for our org. Now I need to introduce change management. I have created a Git account and a blank repository. I have following queries:

1. Sandbox repository: How do I setup a Sandbox repository? I alredy have authorised the Sandbox org in VSCode and retreived the classes, pages, etc. Now how do I include these in Git? Or do I not need that at all? Should I just push the components being changed to Git and later merge them to the environment I want? 
2. Merge changes: If I am not copying the whole sandbox to Git how do then I merge these changes to the Sandbox? How will the compilation issues, etc be resolved?
3. Change Sets: How do I push changes from dev Sandbox to Full copy and then to Prod?

Apologies for such basic queries but I want to set the processes right at the very beginning instead of having to redo them.

Thanks,
Vandana
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi vandana,
Please go through these trailheads which might help you in this.
https://trailhead.salesforce.com/en/content/learn/projects/develop-app-with-salesforce-cli-and-source-control
https://trailhead.salesforce.com/content/learn/modules/org-development-model
https://developer.salesforce.com/tools/vscode/en/getting-started/first-project

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards