If you work in consultancy, you might encounter a situation where you need to hand over a project repository to a competitor. However, the repository contains some proprietary code that shouldn't have been included in the first place. Is it possible to completely remove a directory from the git history? Let's explore how we can achieve this. Prerequisites The first and most important note is that I was unable to achieve this on Windows . Instead, I had to create a virtual machine with Linux (Ubuntu 22.04) . Git and python3 were preinstalled. Unfortunately, git alone won't suffice. You need to install 'git-filter-repo' , a handy tool for rewriting git history. You can get it from GitHub ( https://github.com/newren/git-filter-repo ) or use pip to install it. I went with pip for simplicity. First, install pip : apt install python3-pip Then install git-filter-repo : python3 -m pip install --user git-filter-repo Check if the installation was completed succe
In the latest release Salesforce finally let us to migrate fields and sections from page layout to any place on the record page as individual components. This of course means, that you can set visibility of those fields and sections individually. Unfortunately it all works on Custom Objects only… Or not? Though Dynamic Forms really work just on Custom Objects, I will show you easy workaround for Standard Objects . In the tutorial we will display Shipping Address on Account in the right region aside from the rest of the record. To accomplish this we will use Lightning App Builder to create new Record Page for Contact object and quick action to create custom section layout . For this interesting idea I would like to thank my colleague Emma Peeters , who introduced the workaround on my recent project. Update Account page layout First we will remove the Shipping Address Section from Page Layout on Account Object . Go to Object Manager → Account → Page Layouts → Account L