developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
105
results
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch both local and remote.
Steps to renaming a branch
Rename your local branch:
If you are on the branch you want to rename:
git branch -m new-nameWhereas, if you're on a different branch:
git branch -m old-name new-nameDelete the old-name remote branch and push the new-name local branch:
git push origin :old-name new-nameReset the upstream branch for the new-name local branch:Switch to the branch and then:
git...
Andrew Fletcher
•
Post a NetSkope update, composer would fail when running any command that...
Andrew Fletcher
•
I need to generate a patch and then apply automatically to my Drupal...
Andrew Fletcher
•
In the terminal type, the following command:
sudo apt updateAfter typing the...
Andrew Fletcher
•
Attempting to run a composer update command, you know the one used...
Andrew Fletcher
•
Post creating a new branch in the repo, next step was to run the checkout command locally. On my local environment I ran the following command
git checkout {branch-name}However, the response was
error: pathspec '{branch-name}' did not match any file(s) known to git
Solution
The issue while the new branch is known in the repo, it's not known in my local environment. To make the new branch known you need to run the fetch command
git fetch --allResponse
remote: Enumerating...
Andrew Fletcher
•
Working in an AWS ec2 environment, my goal is to access the server via...
Andrew Fletcher
•
How to set the Private file path in Drupal using the following steps:
Create a...
Andrew Fletcher
•
This page will be a progressive outline of moving those regular run scripts that...
Andrew Fletcher
•
This issue
I have a folder with about 10,000 files in it. I want to scan...
Andrew Fletcher
•
Using Homebrew for speed tests...
I'm using Speediest CLI - for more details go to https://github.com/sivel/speedtest-cli
To install speedtest CLI is is quick by running the following
brew install speedtest-cliI had a few brew updates required as you'll see by the response below
You have 18 outdated formulae installed.
==> Fetching dependencies for speedtest-cli: mpdecimal, openssl@3 and python@3.11
==> Fetching mpdecimal
==> Downloading...
Andrew Fletcher
•
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
•
How to count the number of files in a directory. At some point you'll have...
Andrew Fletcher
•
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
•
After cloning a site, next you will want to import the config file. Which...