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
1
vote
1answer
18 views

How do I download & setup Git Bash, for Windows & VSCode?

I don't know where to get GIT Bash from and how to set it up. I am asking because the answers were not found or not obvious, install was a bit of an unknown, hence this might help someone else, so I ...
0
votes
1answer
40 views

Error when deploying discord.py bot to Heroku: pathspec 'rewrite' did not match any file(s) known to git

so when I'm trying to deploy my discord.py bot to Heroku, it shows following error when executing the last command: > error: pathspec 'rewrite' did not match any file(s) known to git I already ...
1
vote
1answer
55 views

Permission Set: Existing other OLS/FLS permissions are wiped off in Production

Deployment: We deployed a custom permission set through Copado tool to Production and the git commit for this permission set contains 2 FLS permissions on User object. The scenario here is - other OLS/...
0
votes
1answer
74 views

jsconfig.json in sfdx project

Let's say we have got (for some reasons) from git jsconfig.json file in /lwc directory. My questions are : for what purposes do we need to use this file at all in project? i can see in include ...
1
vote
2answers
31 views

How to solve the Custom Metadata Markdown Mix-Up in SFDX?

So I just converted one of my older repositories to SFDX and I noticed that custom metadata has the extension .md which pre-SFDX wasn't a problem because a -meta.xml was appended. Now basically the ...
1
vote
0answers
14 views

Best Pretter Formatting Structure for Unlocked Package structure

I am moving towards an unlocked package structure on the Org I work on. The instance was inherited and did not have any version control so seems like 2 birds with one stone. I've always used Prettier (...
0
votes
1answer
29 views

.gitignore for various IDEs

So I searched almost everywhere for a reasonable .gitignore that also covers multiple IDEs while also making it clear which is which. The examples I found so far a poorly structured and do not ...
3
votes
1answer
171 views

Should some parts of an org NOT be versioned in SFDX?

So, with the move to DX and the source format we can and probably should version much more than we previously did with the metadata format. Objects obviously are a pretty obvious and mandatory choice ...
2
votes
2answers
176 views

Do I need to version package.xml?

Before DX I always had this in my .gitignore: /src/package.xml Now I am migrating to DX and a package.xml got created in my root somehow. Back in the days, I excluded the file because I thought that ...
0
votes
0answers
603 views

RPC failed; Curl 56 OpenSSL error when deploying app to heroku

I keep getting the following error when i try to push my application using heroku. numerating objects: 62, done. Counting objects: 100% (62/62), done. Delta compression using up to 12 threads ...
1
vote
1answer
231 views

convert existing git repo to sfdx project

I have an existing git repo with Salesforce metadata in it that I've been using for the last couple years. It's not a sfdx project, it's just what is returned when using the metadata api. I'd like to ...
1
vote
1answer
56 views

Underline character is misbehaving in MINGW64 Bash

I have been seeing this during the past month. By checking the standard CMD terminal I realized the issue is only happening in MINGW64 Bash: MINGW64 Bash: Win CMD: I remember not having issues so ...
0
votes
0answers
18 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
22 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
139 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
89 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
33 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
33 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
47 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
361 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
39 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
190 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
164 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
37 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
33 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
30 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
57 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
74 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
621 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
28 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
209 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
54 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
131 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
138 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
72 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
71 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 ...
4
votes
0answers
290 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
45 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
38 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
316 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
213 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
169 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
147 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/ ...
2
votes
1answer
939 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....
4
votes
1answer
115 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
47 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
383 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
85 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
445 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
560 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 ...