Step 1 Github for Salesforce DEVOPS
Create an account in the Github. If you have organization email, talk to your Organization Admin because they may have multiple projects.
Link to Create or Login Github
Step 2 – Github for Salesforce DEVOPS
Login to your Github Account and click below link to create repository structure which supports DevOps Center.
https://github.com/forcedotcom/dx-empty
Click on the Use this Template button and then, click on the Create a New repository Button.

Step 3
Provide the Repository name and set the visibility. Most of the times, Private is the good option as you can add collaborator latter.

The final Structure of the repo. Now your repository is ready to be used in the Salesforce DevOps Center.

Couple of tips on the files
.forceignore – This defines what metadata and files to omit when pull (retrieving) files from development environments and deploying (Push) changes to environments in your release pipeline.
Sample of the file
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#
package.xml
# These metadata files are ignored when promoting (deploying)
**/appMenus/**
**/appSwitcher/**
**/fieldRestrictionRules/**
**/objectTranslations/**
**/profiles/**
**/profilePasswordPolicy/**
**/profileSessionSetting/**
**/settings/**
**/sharingRules/**
**/AuthProvider/**
# These metadata files are ignored when pulling (retrieving)
*.settings
*.appMenu
*.appSwitcher
*.rule
*.objectTranslation
*.profile
*.profilePasswordPolicy
*.profileSessionSetting
*.sharingRules
*.AuthProvider
# LWC configuration files
**/jsconfig.json
**/.eslintrc.json
# LWC Jest
**/__tests__/**
How to delete a repository from the GitHub?
There is a possibility that you want to delete unused Github directory which may have been used in the DevOps Center. There is a way to do that.
Step 1
Click on the Directory which you want to delete and then click on the “Settings” link

Step 2
Scroll below and you will find Danger Zone section. Click on the Delete this repository button. Then you need to mention the Repository name again and click I understand the consequences, delete this repository. Great, You successfully deleted the repository!


To learn how to setup Salesforce DEVOPS Center, click here
Disclaimer : This article is not endorsed by Salesforce or any other company in any way. This is my view and knowledge on the topic which I wrote. Please always refer to Official Documentation for the latest information.

Leave a Reply