Andrew Fletcher published: 30 August 2023 1 minute read
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 --all
Response
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), 922 bytes | 17.00 KiB/s, done.
From https://bitbucket.org/{path}
* [new branch] drupal-10 -> origin/drupal-10
* [new branch] feature/august-release -> origin/feature/august-release
* [new tag] 2023.06rc -> 2023.06rc
* [new tag] 2023.08rc -> 2023.08rc
Now you'll be able to run the Git checkout command
git checkout drupal-10
Response
Switched to a new branch 'drupal-10'
M content/vendor/bin/drush
branch 'drupal-10' set up to track 'origin/drupal-10'.
Related articles
Andrew Fletcher
•
21 Apr 2024
This command will help you spot any unusually large directories
The red flag was when I saw the server disk space is showing a site is taking up 57992.5 MB, where locally the site size is showing 957MB. There is something serious happening here and I need to establish the problem quickly. When dealing with a significant discrepancy in site size...
Andrew Fletcher
•
05 Apr 2024
Drupal 9 to 10 upgrade an example of the actual steps taken
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10. However, the point of difference is this article works through the actual action steps of the upgrade.Planning and testing is critical for the Drupal to version 10 process to...
Andrew Fletcher
•
18 Mar 2024
Resolving CVE-2022-48624 less issue
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial to understand that the issue lies within the "less" package, not Nginx itself. The vulnerability affects "less" before version 606, where close_altfile in filename.c in less omits shell_quote calls for LESSCLOSE,...