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
35
votes
3answers
5k views

How to use GIT on multi dev environment

I have previous experience using GIT in other development environment and I never had much troubles using it. We where using SVN for salesforce, however we want to migrate to GIT for the uncountable ...
18
votes
2answers
3k views

Best practices for Versioning managed packages in Git

I know this is not the right place for general questions about versioning control. But Salesforce.com projects are someone special from regular local Java/.NET projects. That is why you find many ...
17
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 ...
12
votes
4answers
5k 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 ...
10
votes
3answers
2k views

Git for Salesforce

Do you use Git with Salesforce? What are the key challenges that you have encountered in using Git for Salesforce? We are about to make a decision on Git, and would like to learn from this community.
9
votes
2answers
4k views

Best version control for salesforce -eclipse and Mavens mate

Which is the best version control for force.com projects. Currently we are not using any version control and we are planning to follow some practices. We predominantly use eclipse and Mavens mate. We ...
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 ...
6
votes
2answers
1k 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 ...
6
votes
2answers
3k views

Unable to use destructiveChanges.xml with multiple developers

(Sorry, long post) We have a team of 4 developers, each with their own DE org We are struggling with propagating destructive changes between orgs. From our reading of the docs, we should be able to ...
6
votes
1answer
152 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 ...
6
votes
1answer
262 views

Atlassian Salesforce - UAT / master branch

We want to use Atlassian products to trace our Salesforce code. I begun reading the documentation https://developer.atlassian.com/display/SFDC/The+Salesforce+Development+Workflow I didn't understand ...
6
votes
1answer
2k views

Managing Git with Sublime Text Salesforce IDE plugin (HaoIDE)

I am setting up our Saleforce GIT repo and trying to plan out a solid workflow, but I'm unsure how to make it work with the Sublime Text 3: Salesforce IDE plugin (Refactored to HaoIDE) because it ...
5
votes
1answer
610 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 ...
5
votes
2answers
2k views

Manage Apex Code from a Git Repository?

Question Any simple ways of keeping a subset of your apex code in sync with a git repo? Background I'm a consultant, and over time we've built out a number of helper classes that we use across our ...
5
votes
1answer
747 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 ...
5
votes
1answer
133 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 ...
5
votes
1answer
2k views

Creating a repo with Eclipse workspace?

I'm developing SF Apex code in eclipse and want to use git. Another developer will clone the repo and requests I commit the eclipse workspace file so the project exists & includes the necessary ...
5
votes
0answers
444 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 ...
5
votes
0answers
143 views

Using GIT in Salesforce

I just tried to use GIT as our version control system. I went through following dreamforce tutorial by John Stevenson: https://www.youtube.com/watch?v=9P6ti5zQvRQ I was able to create a GIT account ...
4
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 >> ...
4
votes
1answer
241 views

For a new class should i upload meta.xml to github?

When I write a new class and need to push the class to svn/git do I need to upload the -meta.xml file also? or just the .cls file?
4
votes
1answer
172 views

How to connect separate Eclipse Patch Org project to Git(hub) remote branch of another Eclipse project?

Patch orgs in Salesforce.com are somewhat comparable to release branches in a Versioning Control system as both represent different timelines of the same codebase. I just switched from Subversion to ...
4
votes
1answer
121 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 ...
4
votes
1answer
225 views

Is there something like NPM for Apex/Salesforce already in use?

Internally when we want to share code between multiple managed packages we do it in an unstructured way. Having used Nods.js's NPM recently, it seems that in comparison we in the Salesforce community ...
4
votes
0answers
69 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 ...
4
votes
0answers
68 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?
3
votes
1answer
123 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 ...
3
votes
2answers
67 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 "...
3
votes
2answers
592 views

Force.com IDE is deploying project to server on startup of eclipse

I have several Force.com projects in the same workspace, which I am doing development on using Eclipse Kepler and the Force.com IDE. Additionally, I am using EGit to version control all the projects. ...
3
votes
0answers
574 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 ...
2
votes
4answers
877 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) ...
2
votes
4answers
643 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
2answers
2k 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
64 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 ...
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 ...
2
votes
1answer
406 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 ...
2
votes
1answer
62 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.
2
votes
1answer
382 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 ...
2
votes
0answers
66 views

Multiple developers on one git repository [duplicate]

I have a git repository with code from salesforce instance. The SF project is managed in eclipse (keppler version with egit plugin). I ignored the package and schema files in order to prevent ...
1
vote
2answers
248 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
2answers
57 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
987 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 ...
1
vote
2answers
538 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 ...
1
vote
1answer
52 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 ...
1
vote
1answer
327 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 ...
1
vote
1answer
3k 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
1answer
5k 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 ...
1
vote
1answer
235 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 ...
1
vote
1answer
317 views

How to track changes to Objects in Eclipse/Git?

I modified a Link(Javascript) on the Account Object directly in my org. I want to get this change in my eclipse, so that I push this to my Git branch. When I right click inside the file in eclipse(...
1
vote
2answers
141 views

Should all available metadata be managed in a VCS?

I'm setting up a git repository for an SFDC project across a team of developers. I think I should commit all metadata comprising the full org so we can manage changes in addition to the usual ...