Move Metadata from Production to Your Local File System
When you build customizations on Salesforce, you must preserve the functionality of your existing org during the development cycle. To build customizations without affecting your production org, save your production metadata in a version control system. Git integrates best with SFDX tools.
First, move the required metadata from the production org to your local file system. To move metadata to your local machine, use a retrieve call instead of a source pull. Next, push your files to a repository that is accessible to your team members with Git commands. The repository is now the original source of production metadata for your team’s development cycle.
Now that your production metadata is stored in a repository, move the necessary metadata back to your local file system to begin development work.