Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
12 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
352 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 ...
0
votes
1answer
77 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
44 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
38 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
150 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
70 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
158 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
85 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 ...
4
votes
1answer
59 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 ...
1
vote
1answer
104 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
276 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) ...
0
votes
0answers
26 views

Version control for Salesforce CPQ

Does anyone know what the most technically feasible approach is currently for managing Salesforce CPQ configuration in a version control system (e.g., Git)? We currently have most of our metadata ...
2
votes
0answers
44 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
28 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
38 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
355 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. ...
2
votes
2answers
51 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
54 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
2k 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 ...
1
vote
2answers
1k 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
284 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 ...
4
votes
2answers
816 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
528 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
31 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
182 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
212 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 ...
0
votes
1answer
4k 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
133 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
68 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 ...
3
votes
0answers
63 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
37 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
300 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
650 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 ...
1
vote
1answer
196 views

Eclipse remove src folder from structure

Is there a way to remove "src" folder as a default folder where all the components such as classes, pages, etc. reside? I have created a git repository using these instructions and my git folder ...
0
votes
1answer
73 views

Cloned Git Repostiory and MavensMate [Does not work]

There are similar questions. But, the answers do not work. Please advise. I followed these steps few times. However, was not able to create MavensMate Project. Cloned repo on local(To MMWorkspace). ...
0
votes
1answer
65 views

Saving code edits to Salesforce & GitHub Gists simultaneously

I currently use a slightly crude combination GitHub Gists + GitHub Desktop + Atom to save backups of my Apex code & to keep track of my revision history. Plus MavensMate with Atom to edit my code, ...
5
votes
1answer
3k views

Connect GIT project with Eclipse Force.com project

I'm using Eclipse MARS v2 and Force.com IDE v36. I am trying to get Eclipse connected to a GIT project I just cloned down to a local directory on my drive: My Computer >> My Documents >> ...
1
vote
0answers
26 views

Script to bulk git-add changes to permissionsets/profiles

I use git for revision control of my Salesforce metadata. I often make minor changes (adding or removing a class, field, etc) that have massive repercussions on all PermissionSet and Profile metadata ...
1
vote
0answers
143 views

How do I re-create my Mavenmate project and preserve Git history?

I have been developing a SF project using Mavensmate and Sublime Text. The code is in Git and hosted on Bitbucket. I had to move to a different Sandbox to continue working but something is not right ...
0
votes
0answers
23 views

Not able to commit force.com project to Bitbucket due to specific error

I have added a force.com project to eclipse, but when i am trying to push/commit the entire project to bitbucket master branch it's giving me the following specific error - Following is the project ...
7
votes
1answer
1k views

GIT: How do I maintain modular version control within Salesforce development?

Version control within Salesforce can be quite a tricky topic, very quickly one will experience the conflict of knowing what is the source of truth within their organization. It seems the most ...
12
votes
4answers
4k views

Deploy incremental changes using Github and Jenkins

We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub. We would like to improve ...
2
votes
1answer
63 views

What is the best way to migrate code from external consultant?

I am planning to hire consultant, but I am puzzled with the simplest question. How to manage code with him or her. We do not have available sandboxes right now. He or she can open free development ...
3
votes
0answers
497 views

merge tool for salesforce profiles - can it be done?

I am implementing git for our salesforce team. I've got some slick python scripts that retrieve/deploy to the cloud and it's all good except for a few situations which are pretty painful. I hope ...
1
vote
2answers
415 views

Salesforce and Continuous Integration

I want to use CI in our company with ANT Migration Tool. In our case TeamCity, but it doesn't matter. We have our Production organization and a few sandboxes. Developer sandbox, QA sandbox, UAT ...
16
votes
6answers
2k views

How to keep sandbox in sync with changes from other developers?

We are a team of 9 developers, working on a large project and commits are made to master branch all the time. When I needed to work on any new enhancement I used to pull everything from master branch ...
2
votes
1answer
60 views

From your experience, what are the top reasons that makes GIT hard to work with Salesforce? [closed]

I am inclined to know the most important issues of making GIT work with Salesforce.
6
votes
0answers
432 views

Team Foundation Server as source control for Salesforce Project?

Does anybody has experience on using Team Foundation Server as source control for Salesforce project? We are currently using Git but management wants to start using TFS as source control going ...
2
votes
3answers
1k views

How does a Salesforce Developer keep their developer environment (GIT and Sandbox) up to date with the constant changes made directly in production?

Looking for suggestions on: GIT branching/pull/merge best practices Deployment best practices Automation tips I've found articles about Continous Integration but generally they are for DEV->QA or ...