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
2answers
58 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
33 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. ...
-1
votes
1answer
38 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
37 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
17 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
29 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
175 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
107 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
119 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
96 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
141 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
70 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
16 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
190 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
48 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
169 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?
3
votes
1answer
332 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
156 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
2k 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 ...
1
vote
1answer
293 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
308 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
100 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
3k 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
285 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
837 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
361 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
334 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
554 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
2k 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) ...
4
votes
0answers
83 views

SFDX VCS repository setup with both DX and metadata source

Is there a best practise how to organize git repository with both dx source format (using unlocked packages) and metadata format? If there would be few projects started with DX source development and ...
0
votes
1answer
48 views

xcode and heroku

Can we use heroku git with xcode source control? I tried using ssh I get following error. failed to start SSH session: Unable to exchange encryption keys Also it could not authenticate using user name ...
1
vote
1answer
74 views

Learning Git Hub on Trailhead

am I am trying to work through the DX trail on Trailhead. I am stuck on the Github portion. I have installed Git on my local machine as well as Visual Studio Code. I have created the repo and the ...
0
votes
1answer
835 views

Salesforce CLI tools do not work together with Git Bash on Windows

I have a problem, when I try to use Salesforce CLI tools for DX, it works for when I type and execute them in standard windows "cmd" program but doesn't work when I run them from Git Bash terminal. ...
3
votes
2answers
82 views

One VCS repo per “artifact”?

My client's Salesforce codebase/metadata is fairly large and we're hoping to switch to SFDX. Figuring out which components go into which artifact is going to be a challenge - I expect we'll have a "...
1
vote
2answers
60 views

What is the minimum set of metadata components from a production Org should I fetch?

I want to set up Git repo for our production org to start version control. I am unsure which metadata components I should fetch into my repo. If I select all components from the Force IDE for ...
1
vote
1answer
4k views

Git: no changes in this file have been detected, or it is a binary file

I have refreshed a sandbox a few weeks ago and since then all the files in the repository are "marked" like if there was a difference but they are not, showing the message: No changes in this file ...
2
votes
2answers
3k views

Deploy from BitBucket to Salesforce

I have SF project that its sources are stored in BitBucket repository. The question is how or which tools I can use if I want to run deployment that retrieve all the sources from BitBucket and run ...
2
votes
1answer
531 views

Jenkins Pipeline - sfdx folder not found

I'm trying to setup a Jenkins Pipeline for our SFDX CI process on a Jenkins instance. I've successfully added the custom tool I can successfully create a new scratch org via ${toolbelt} folder as ...
10
votes
3answers
2k views

git repo design pattern for sfdx projects

I'm unsure what is best practice for storing my sfdx projects in git repos. Do I store each project in one repo, or can I store multiple projects in one repo? This is what I'm thinking it should be ...
5
votes
1answer
695 views

Salesforce with Git

We are a group of 5 developers and 5 project managers which using Salesforce. The developers are working with Sublime and MavensMate, and we want to start using a source control tool (Git) and I'm not ...
0
votes
0answers
33 views

Versioning project on github

I'm trying to store my project on github using Force.com IDE Tool (ant). I have created a new command to store my project on github defining it in the build.xml file: <macrodef name = "git"> ...
0
votes
1answer
222 views

Force.com migration tool is not working after git auto packing repository

I am using git and force.com migration tool for deploying code into sandbox. It was working correctly for many days (including todays morning) until git automatically started to 'Auto packing the ...
1
vote
2answers
317 views

Versioning SF metadata and deploying from version control

I am dealing with a team of unmotivated sf dev/configurators. They are either refusing to learn git or are just slow. So, asking them to start the dev process using git and IDE is bringing in more ...
1
vote
1answer
6k views

Visual Studio Code + ForceCode not working?

With MavensMate no longer being developed, I've shifted over to VS Code with the VisualCode plugin. Our process is to focus around Git, so every morning we pull the newest code from the repo, merge ...
0
votes
1answer
193 views

merging profiles from different branches/orgs

would appreciate some suggestions on this problem I'm having. Essentially it has to do with making a change to a profile, say a field permission and then propagating that through the other ...
1
vote
0answers
120 views

how do you avoid “meta.xml” files from being deleted during a merge

i find that the working of git removes the meta.xml of the apex classes. Here is what i have, dev branch with 2 feature branches. And in the dev branch, there were 2 apex classes.So the files in the ...
4
votes
0answers
71 views

Populating git repository from production [closed]

We are starting to use Salesforce DX. What is the best way to populate the git repository from Flosum?
1
vote
0answers
43 views

How to change the lead layout to default layout using ANT

I have a requirement to enable the default button for Lead Layout using ANT tool. This is my Package.xml file <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
0
votes
1answer
387 views

Using Eclipse Kepler and installed EGit plugin, but not getting git option in Team

I am not getting git option in Open Perspective window. Not sure why. I am trying to get the git repository connected. I am new to git and want to learn how to do this. I have gone through the article ...
5
votes
1answer
896 views

How can I get better diffs when looking at Salesforce metadata

Sometimes when I look at changes to Salesforce metadata using a git diff tool like SourceTree it is not clear what's actually changed. If one block of XML has been deleted and another one inserted the ...