Questions tagged [git]

Questions related to the use of the Git version control system (VCS) to as part of the Salesforce development process, including, but not exclusively, with Salesforce DX.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Document/Static Resource URLS in Email Templates in Source Control

Let's say that I have a Document or a Static Resource which stores an image that I use in an email template. The .email file within my project directory will have something that looks like this: <...
0
votes
0answers
14 views

Profile Access to Activity Custom Fields via git

I have a added a custom field in Activity object and gave read only access to a specific profile. We are having git and Jenkins to deploy these files. Below is the profile definition with adding the ...
0
votes
1answer
34 views

Revert changes from git using VSCode

noob question from someone who just started using VSCode and SFDX for Salesforce development. When you make changes to a project, git tracks those changes, this is nothing new. But when you want to ...
2
votes
1answer
29 views

What files absolutely belong in a SFDX repository?

So - with SFDX there are tons of files being generated. Default files like gitattributes should obviously go there, package.xml already seems to be handled differently and then there are files ....
0
votes
2answers
30 views

Do you actually need a develop branch when using git? [closed]

So I know that basically every git project hast a master and a develop branch. This works for most of my Salesforce projects except for one. In that project, there are no releases - 99% of the time it'...
0
votes
1answer
29 views

Is it viable to version all metadata nowadays?

Before SFDX I only versioned just the code (classes, components, objects, pages, triggers, and sometimes staticresources) in all of my projects and I saw many other projects doing the same. This ...
2
votes
1answer
21 views

Tracking managed package in source control

I have a managed package that I am testing in my sandbox from the App Exchange. I am also writing some custom classes that depend on resources in this managed package. I want to track these changes in ...
2
votes
1answer
65 views

Set up Git in IntelliJ with Illuminated Cloud

I’m new to source control (git in our case) and have just set up a development flow with CI using Gearset. That’s all well and good (and working fine). But, I also want to set up VCS within my IDE (...
1
vote
1answer
30 views

TFVC vs GIT For Salesforce [closed]

We are planning to use CICD for Salesforce development, for that we are going to use TFS. In TFS we can create both TFVS and GIT type of repository. What is the difference between these two with ...
1
vote
2answers
47 views

Cannot pull from scratch org after discard changes in visual studio code

I use git and sfdx with vs code. I have a scratch org where I made changes to the roles. I did sfdx pull source from scratch org. But I discarded the changes thinking I can pull them again from ...
0
votes
1answer
33 views

Connecting a Clone Git Repo With An Existing Sandbox Org

I have a repo (based in bitbucket) that I have cloned. How can I connect my cloned repo with my sandbox environment? My IDE is VS Code. In the past I have created a new project from manifest - ...
0
votes
1answer
27 views

How to upload to gitlab repo? [closed]

Ok, so i have been trying to get this working and its driving me nuts. All want to do is take my project in vscode and upload it to a branch in gitlab. Here is a list of things i have done : Set ...
0
votes
0answers
15 views

GIT Auto-Fetch Not Updating Org

I am finally making the transition from Eclipse-->SVN to Visual Studio Code-->GIT for SFDC development. One major issue: When you refreshed from your SVN repo into Eclipse the code was not only ...
1
vote
1answer
29 views

same object multiple teams

I have a standard object , that is being used by multiple teams . Team A creates some custom fields on it and Team B also creates some fields on the same object . Currently these two teams have ...
0
votes
1answer
30 views

Metadata shown as modified When Pulled from Sandbox

When I retrieve metadata from my sandbox through a package.xml,there are lot of files(Classes, fields, Aura etc) that are shown as modified(M) in my local repository but when I try to check the diff,...
0
votes
2answers
47 views

Source Control Metadata Types

I'm looking for recommendations on what metadata types to track when getting started using source control. Is it better to start with only code related metadata (apex, vf pages, lightning) and to ...
2
votes
1answer
144 views

Insufficient access rights on cross-reference id when reverting a flow in CI/CD pipeline

I'm super new to development workflow using Git and Visual Studio Code. In our company, the deployment of code and configurations are done via Azure Dev Ops CI/CD pipeline. When I deployed a new flow, ...
0
votes
0answers
25 views

Is there a way to do 75% org wide coverage checking before I check-in my codes to a sandbox?

Is there a way to make Sandbox like Production that will prevent the deployment with full validation if the overall coverage is under 75%? I am building CI/CD in GitLab and have a sandbox for UAT and ...
0
votes
2answers
51 views

Deploy code to a refreshed sandbox

I'm currently managing my code in git. We are about to refresh all sandboxes, so all changes that aren't in production will be deleted. However, they are in git. Therefore, git is more updated than ...
0
votes
1answer
41 views

CI/CD in Salesforce using Azure dev ops

I am quite new to CI/CD in salesforce, so I have a very basic level of question. so far I have completed the below steps to set up CI/CD created a repo in Azure dev. cloned the repo in local file ...
0
votes
1answer
52 views

Pushing to a remote branch on GitLab from Jenkins for a Salesforce SFDX Project [closed]

I am setting a Pipeline for a Salesforce project and wants to create a Job that refreshes a particular branch with Master Branch and PUSH it back to the remote GitLab repo hosted inside our data ...
0
votes
2answers
96 views

Single Source of Truth for Org Development Model [closed]

I think that the SSoT (single source of truth) is VCS (e.g. Git) Am I right?
1
vote
1answer
47 views

Copy file to Docker executor on Circleci for SFDX project

I have a SFDX project on github which is linked to circleci. I'm using docker executor in circleci. Now I don't want to create a new scratch org everytime my workflow runs on circleci after a commit. ...
-2
votes
1answer
59 views

Simplify Git bash CLI steps to commit the code to Github [closed]

I Would like simplify the below steps to commit code to Github. Please share any suggestions Step to Commit and Push code from local folder to repository through terminal. Move to Full retrieve ...
3
votes
0answers
143 views

ERROR: Failed to decipher auth data. reason: Unsupported state or unable to authenticate data

I am getting this error: Failed to decipher auth data. reason: Unsupported state or unable to authenticate data. Anytime I try to run a sfdx force:auth, force:org:display, force:org:open command....
1
vote
0answers
30 views

Unable to connect to Heroku git, ssh connection fails [closed]

Created a new heroku account, adding SSH keys to Trying to configure Herokugit, accepted the default key (id_rsa) as the public key, changed the permissions to 600 as it complained its not secure. Now ...
0
votes
1answer
35 views

Versionning changes in Preprod sandbox Salesforce Visual Studio without Scratch org

I am a Salesforce developer, Previously, I only used the Developer Console Now I would like to use Visual Studio. I would do versioning without using Scratch Org, is it possible? To do this, I would ...
3
votes
2answers
229 views

SDLC with data-dependent applications (CPQ and FSL)

I'm looking for best practices for a SDLC workflow given the following scenario: Team consists of a mix of point-and-click admins and developers Project is based around CPQ or FSL where data is used ...
4
votes
2answers
165 views

Git workflow on teams with point and click admins

When working on projects with a mix of developers and point and click admins in different sandboxes, how do you pull in the admin's metadata changes to the git repository without pulling in every ...
1
vote
1answer
149 views

We could not confirm that you authenticated to your Dev Hub org using JWT-based auth flow with the 'DreamHouse_demo' Connected App

Build an Automated CI/CD Pipeline with GitLab We could not confirm that you authenticated to your Dev Hub org using JWT-based auth flow with the 'DreamHouse_demo' Connected App. I am doing the ...
0
votes
1answer
125 views

Advantage of incremental delivery

We are using a full strategy to deliver our package in production (we make a package with all metadata) and we hesitate to switch to an incremental strategy (send package only with metadata we create/ ...
1
vote
1answer
499 views

Working with GIT and org code in VS code for a single sandbox

We have our existing code repository in GitHub. This code is in folder structure resembling eclipse IDE forlder structure(or probably they call it metadata structure), like src --> classes --> myclass....
2
votes
1answer
87 views

Should I source code an entire org with SFDX or just projects separately?

I'm trying set up a development model in our organization using SFDX and scratch orgs. Following the SFDX Trailhead modules, I see that only the particular project at hand is being sourced. How ...
1
vote
0answers
27 views

How does one keep multiple dev sandboxes up to date with the upper lifecycles?

Currently there is a gap in our CICD process in my opinion. We have multiple teams working in multiple dev environments, when code is finished in an environment it is then merged into the development ...
3
votes
2answers
296 views

Merge Branch || git diff not including .gitignore files

I have 2 branches in SFDX enabled project. mybranch and develop. I want to merge selected changes from develop and then merge those in mybranch. As a starting point I am trying to use git diff to see ...
0
votes
1answer
68 views

Each Unlocked Package in Separate Repo

I read that people suggest to separate the packages each into their own version control repository. What would be the downside of using one repository and just separating the packages into folders? We ...
-2
votes
1answer
342 views

Bitbucket for Salesforce [closed]

I want to set up bitbucket so that i can push the code changes to the bitbucket and the changes should get deployed to the Salesforce org from bitbucket. How to achieve this?
4
votes
1answer
461 views

SFDX development 'without ScratchOrg and Unlocked Packages' with Git [closed]

I think that the first reaction that anyone will have after reading my question will be 'Why do you want to move to DX without using ScratchOrgs and Unlocked Packages'? Well, we are planning to use ...
0
votes
2answers
300 views

CI/CD w/ SFDX: Where to store the jwtkeyfile in my repo?

I was following some notes online and managed to setup a CI/CD pipeline in bitbucket using Docker and SFDX. I used the following command in the .yaml file: sfdx force:auth:jwt:grant --clientid $...
2
votes
4answers
3k views

Should the .gitignore include an entry for .vscode when using Git and VSCode

wadewegner has an example .gitignore file with the below content .DS_Store .sfdx .project .salesforce .settings node_modules .idea As part of his sfdx-simple app on GitHub. Should this file include ...
2
votes
1answer
373 views

Errors while running job through cloudbees, on the org the deployment succeeds

We have are using cloudbees to deploy to salesforce using ant. While deploying to an org we get the following error, but if we check on the sandbox, the deployment actually proceeds. Because of the ...
4
votes
1answer
426 views

Can I use git repo in old format and vscode in new source format?

We want to switch to vscode but our git repo uses old source format and we don't want to convert this to new source format yet.This article talks about how to convert existing projects to new source ...
0
votes
1answer
148 views

Using APEX to Commit to GIT

I am discussing a project where an interface will be provided for a team to enter data. We were hoping to store that data into a GIT repository so there's an easy overview of what changes were made to ...
1
vote
1answer
5k views

Git unable to update URL base [closed]

Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github. /Desktop/GloboHealth/globohealthDX$ git ...
6
votes
1answer
363 views

How can I dynamically create build.xml so the only tests that run are related to the code I'm deploying?

I'm looking into routing my code through Git and am wanting to do builds using Ant. However, I do not want to run all tests on each build and only want to run tests for the files that have changed ...
2
votes
1answer
2k views

Usage of cli command - sfdx force:source:convert

I used force:source:retrieve to retrieve the given list of components (classes, workflows etc) and committed the files to git. Now I want to deploy these components to higher environments like QA and ...
0
votes
2answers
511 views

Saving metadata to git/bitbucket

How can we commit data from unpackaged folder to the repo folder. I have master repo created and want to commit the changes to the metadata which is retrieved via retrieve cli command. If I try to ...
5
votes
1answer
558 views

'Script Too Large' when cloning

I have a DX project that heavily relies on the MetadataService class. The files reside in a GitHub repository. I'm trying to figure out why the project fails to get pushed to the scratch org when ...
2
votes
1answer
759 views

Script to dynamically generate XML file based on most Git commit contents (Salesforce CI)

I'm using DX for my Continuous Integration, but post-scratch org when I want to deploy into a traditional sandbox for staging, I'm struggling with an automated way to deploy only the new commits (as ...
2
votes
4answers
3k views

How to get all metadata into Git and What will the optimal release flow using sandboxes?

The current development and deployment is from sandbox to sandbox and the plan is to move to git based deployments. What is the best way to get all the metadata of an existing org into Git(bitbucket) ...