Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
1 answer
67 views

Rollback(Back Promote)Changes through SFDX-Git-Delta deploy

Branching Strategy: In our project we have 3 main branches: Main, UAT & QA & we are using SFDX-Git-Delta plugin (SGD) deploy to promote incremental changes. Developers promote changes to ...
Rose 's user avatar
  • 123
1 vote
0 answers
49 views

Second Generation Beta Package Creation is failing in Github Action

I'm trying to create a 2nd Gen package using Github Action (workflow dispatch Action). After I deployed and run the workflow it gave me an error while uploading the new package: The error is on the &...
Oubayda Samrouth's user avatar
1 vote
1 answer
907 views

VS Code CLI Retrieve taking too long to respond/complete

For several years I have been using the SF CLI retrieve commands in VS Code to retrieve data from my Partial Copy Sandboxes to my local git repo. About a month ago I moved from using the force:source:...
Jeff Callahan's user avatar
0 votes
0 answers
2k views

Unable to do sfdx deploy or sfdx retrieve from Vs code

I reinstalled git as I thought my git became corrupt, git doesnt have issue as git log and git status commands work. My VS code is connected to a sandbox, whenever I am doing a sfdx deploy source to ...
amitsingh6651's user avatar
-2 votes
1 answer
46 views

Is versioning user profiles feasible?

I recently tried to version a lot of things that weren't versioned in Git just yet. But even with the now-used source format, it seems there is still some metadata that is particularly prone to the ...
Semmel's user avatar
  • 2,497
0 votes
1 answer
38 views

How to git init a remote branch instead of master [closed]

I was asked to copy my team's remote branch, called v8.1, to my local. I am to do a bug fix against this branch. In Github, I went to Code, switched to v8.1 and copied the SSH command, running it in ...
Ryan McNeely's user avatar
0 votes
0 answers
210 views

How to deal with mixed line endings in Git?

This problem only occurs if you version non-code in a Git repository. It happens with most non-code but I will use custom labels as an example. So, let's assume we have a custom label called NewLine (...
Semmel's user avatar
  • 2,497
1 vote
2 answers
173 views

Sandboxes often reshuffles files like page layouts making it less git-friendly

When refreshing Sandboxes I would prefer if all metadata is exactly copied from the source org, but rather we often see files being randomly reshuffled without their content changing when we do a full ...
Freddy's user avatar
  • 203
0 votes
1 answer
742 views

Retrieve ReportType in Visual Studio Code

I am able to retrieve Email Templates in VIsual Studio Code as follows sfdx force:source:retrieve -m EmailTemplate:"[FolderName]/[EmailTemplateDeveloperName" I have tried searching, but ...
GroundToCloud's user avatar
0 votes
1 answer
456 views

Parsing error: Unexpected token day

When trying to commit the eslint precommit is running and getting the error: 3:9 error Parsing error: Unexpected token day and prevent the commit from happen I'm executing this example commit: PS C:\...
Leto's user avatar
  • 566
0 votes
0 answers
104 views

Syncing my master branch with local developer sandbox

I tried checking out master branch and ran the following command in vscode sfdx force:source:deploy -u Sandbox -p force-app/main/default -l RunLocalTests After that also i don't think master branch ...
Emmanuel Angelo.R's user avatar
-2 votes
1 answer
100 views

What's the recommended strategy for Git 'Master' branch in Salesforce? [closed]

I want to know the recommended strategy for maintaining the Git 'Master' branch. I would like to share two scenarios: Scenario 1: Our team is offered to work for a new client. The client has a pre-...
Mehedi's user avatar
  • 409
0 votes
1 answer
655 views

Deploying Salesforce Profile via Git

Has anyone successfully deployed Profiles using Git? If yes, what are the steps to do that? I tried to find documentation, but have not been able to find anything that I can use.
Imtiyaz's user avatar
  • 25
1 vote
1 answer
1k views

VSCode .gitgnore not ignoring .sfdx folder

As in the title, I've encountered a problem with the .sfdx/ folder in my repo. After cloning the project it sees some local changes in the typings/lwc and typings/tools folder. .sfdx/ folder is ofc in ...
ukulele's user avatar
  • 25
0 votes
1 answer
200 views

lots of extra lines in layout xml files when deployed to git [closed]

I currently use Gearset to deploy to our Bitbucket repo. We don't quite have a perfect dev > branch > deploy process yet and some changes get made directly in production. This causes 2 sources ...
TylerTwoForks's user avatar
0 votes
1 answer
625 views

Wondering how to properly organize git repo for salesforce org (branching strategy)

We have a little CRM project and I'm wondering how I could organize the whole git-sandboxes-deployment thing in a nice and smooth way. At the moment, I don't think there's actually a big need to do ...
robruf's user avatar
  • 372
0 votes
1 answer
115 views

How do I actually get the git integration to work properly?

I want to have a 1:1 correspondence of the objects in Salesforce and the objects in our Git repo. Furthermore, I want to distinguish in our repo between our code, which has been carefully written line ...
ToonAlfrink's user avatar
0 votes
0 answers
395 views

sync git with salesforce, including deletions?

I'm starting with a new project and I'd like to start fresh. Unfortunately, for various reasons, my Salesforce instance is already cluttered up with a lot of metadata I would like Git to be my source ...
ToonAlfrink's user avatar
0 votes
1 answer
119 views

Is pushing all changes on one branch on Git a great idea?

We didn't use much Git during development and we created multiple functionalities. Is pushing all changes on one branch a great idea or should we create one branch for every feature? Advantages: we ...
NonameJavaNoob's user avatar
0 votes
1 answer
169 views

Is anybody using Metarocket.io as a SFDC GUI?

Was trying to find a way to Find & Replace Visualforce page names in an org and this community answer lead me to MavensMate which is not supported anymore. Then this question looking for an ...
MartechNomad's user avatar
-1 votes
1 answer
45 views

How do I obtain access to a project repo when working as a Salesforce Developer? [closed]

could you experienced developers please tell me, what usually happens (what is the standard process) when a Salesforce Developer gets assigned to a project, which includes Git as a DVCS system, for ...
DevelBase2's user avatar
-1 votes
1 answer
928 views

Correct approach to creating a new Salesforce DX project and pulling from GIT

I am learning Git with Salesforce DX. I learned how to use the terminal for pulling, pushing, committing etc. I know that Salesforce DX has a handy UI to do this without having to use the terminal, ...
DevelBase2's user avatar
0 votes
0 answers
236 views

Deployment getting failed due to Time based workflow

I m getting below issue when deploying the workflow rules from the git to sandbox and also removed the all pending actions from the sandbox then re tried it again but no luck, same issue occuring even ...
BRAHMA REDDY's user avatar
0 votes
0 answers
327 views

Git Commit adds line breaks that wasn't commited

I've been working fine deploying profile permissions on git via VSC. Recently I started to have some issues where I check the changes stage those, check again and see like 10 lines modified. Then when ...
Alexander Aeons Torn's user avatar
11 votes
2 answers
1k views

Branching Strategy and Pushing Tickets with Different Testing Timelines through to Production

Situation We are a small team of internal developers who recently adopted a more modern DevOps model (from changes sets and one org for multiple developers) and wanted to ask the community for some ...
Tom G's user avatar
  • 170
0 votes
1 answer
540 views

Salesforce Git Pipeline not recognizing sfdx

I am setting up my CI/CD pipelines and when i am running the pipeline , it fails with the below error. /bin/bash: line 129: sfdx: command not found Below is my sample .yml file #######################...
sfdc's user avatar
  • 40
-2 votes
2 answers
199 views

What is the recommended tool to start CI/CD for Salesforce development? [closed]

I'm new to this subject, but trying to start on the right foot. What are the recommended tools to start CI/CD for Salesforce development source version control and SFDX context?
Cristea Alexandru Catalin's user avatar
2 votes
1 answer
66 views

Attempting to access prior repo on Heroku

I made a push to Heroku (using the CLI) with corrupted code and was able to roll back the production to the right version. After trying git pull to access the current repo locally, heroku only updated ...
React_and_Python's user avatar
0 votes
2 answers
351 views

SFDX push to playground/specific org

Hi Stack Exchange community, right now I'm learning to code with SF but I'm stuck with a very specific problem, I was trying to add LWCC (https://salesforcelabs.github.io/LightningWebChartJS/) to use ...
Arturo Corona de la Cruz's user avatar
1 vote
0 answers
284 views

Heroku: not building with latest version of code

I'm evaluating Heroku for hosting my Node.js api server, and I'm running into an unexpected issue. The code in the actual pushed branch isn't executed. Whether I'm pulling code from github, or using ...
LearnDude's user avatar
2 votes
1 answer
1k views

Why is Heroku stuck on installing node modules on initial build?

Question: Why is Heroku stuck on installing node modules on the initial build? Summary: I have tested this with both Heroku and Netlifty. Both encounter the same issue. I am able to run npm run build ...
ben holsinger's user avatar
0 votes
1 answer
785 views

Getting error: cannot spawn .husky/pre-commit: No such file or directory when trying to commit, previously ran npm install

I'm having this issue with my computer when trying to commit. This happens after I run npm install for a recently created project. Thanks in advance. P.S.: I'm posting here cuz I couldn't find ...
AjFmO's user avatar
  • 292
-1 votes
2 answers
1k views

How to create new Illuminated Cloud project from git repo [closed]

Which files should I include in my git repository for creating a new Illuminated Cloud project ?
Vanya's user avatar
  • 3
2 votes
0 answers
75 views

Custom Git hunk header for Apex (on GitHub)?

In every Git diff there's this thing called a hunk header at the beginning of the diff section that looks like this: @@ -23,12 +23,10 @@ public with sharing class MyClass { This is nice but not very ...
Semmel's user avatar
  • 2,497
0 votes
2 answers
2k views

VS Code shows modified file

We are working on two types of OS - Windows and Mac. I'm just retrieving code from org and VS Code shows that it is modified, but it doesn't. How to resolve that?
Igor Vasylevskyi's user avatar
1 vote
0 answers
981 views

How to deploy code to SF instance from your branch?

Can I deploy my git branch to salesforce org? Currently, I write my code in vscode and deploy it to org using vscode. If it works, I add that code in the git branch and commit, which gets merged later....
Gargi Gupta's user avatar
0 votes
1 answer
149 views

"Create a Salesforce DX Project" - getting message WARNING: The following metadata isn’t in your org

In the "Develop an App with Salesforce CLI and Source Control" Trailhead I think I'm following the instructions to the letter, but at the "Create a Salesforce DX Project" when I ...
KC2020's user avatar
  • 11
1 vote
1 answer
351 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 ...
TheArchitecta's user avatar
0 votes
1 answer
344 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 ...
Ruben C's user avatar
1 vote
1 answer
2k 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/...
Salma Khathun's user avatar
1 vote
1 answer
1k 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 ...
pincet's user avatar
  • 927
2 votes
2 answers
400 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 ...
Semmel's user avatar
  • 2,497
1 vote
0 answers
33 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 (...
Bobbygllh's user avatar
  • 731
0 votes
2 answers
747 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 ...
Semmel's user avatar
  • 2,497
3 votes
1 answer
232 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 ...
Semmel's user avatar
  • 2,497
4 votes
2 answers
2k 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 ...
Semmel's user avatar
  • 2,497
0 votes
0 answers
3k 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 ...
nick's user avatar
  • 1
1 vote
1 answer
3k 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 ...
Tyler Zika's user avatar
  • 2,882
1 vote
1 answer
182 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 ...
Glen De Marcos's user avatar
2 votes
0 answers
592 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: <...
Mitch Spano's user avatar
  • 1,595