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
22
results
Andrew Fletcher
•
In our projects, team members frequently generate new Git branches linked to the same Jira number, resulting in cluttered and disorganised structures that can pose challenges for both current and future developers. For instance:
Jira: ABC-123
Ticket work: Reformat headers
Over time, these branches accumulate and become disorganised, resulting in names like:
ABC-123-reformat-headers
ABC-123-format-headers
ABC-123-format-header
This can lead to a cluttered and inefficient workflow. It's preferable...
Andrew Fletcher
•
git reset, git revert, and git cherry-pick are three Git commands used for...
Andrew Fletcher
•
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously...
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
•
Git filename error when running the git add command. The error I'm...
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
•
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my...
Andrew Fletcher
•
How do you remove a file from git?
Use the command (rm) to remove files from...
Andrew Fletcher
•
Moving a Git repo due to a change of agencies
Steps to change the...
Andrew Fletcher
•
Currently, I have a situation where I have two repositories. The first is where I've held the code since the beginning. The second has come on board recently and is the client repo. However, rather than shut the original down, I want to keep both running with the same code. How do I synchronise them so that they contain the same thing?
Configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository....
Andrew Fletcher
•
Working on a decoupled React / Drupal 9 site.
Aim: Adjust the output of curated...
Andrew Fletcher
•
How to make React calls on a Drupal 9 backend site using the search...
Andrew Fletcher
•
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS....
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working...