@Paul ... following the 'git init' suggestion ... the following ... AND the fix not mentioned.
Code directory originally from a tgz download and un-compressed ... no git.
Did:
git init
git remote add origin https://github.com/moodle/moodle/
git checkout -b MOODLE_404_STABLE
which returned:
Switched to a new branch 'MOODLE_404_STABLE'
Checked with git branch -a
Returned nothing.
Missing from directions:
git fetch
Command returns:
remote: Enumerating objects: 1507945, done.
remote: Counting objects: 100% (1257/1257), done.
remote: Compressing objects: 100% (864/864), done.
remote: Total 1507945 (delta 431), reused 1121 (delta 366), pack-reused 1506688 (from 1)
Receiving objects: 100% (1507945/1507945), 769.92 MiB | 41.47 MiB/s, done.
Resolving deltas: 100% (1064402/1064402), done.
From https://github.com/moodle/moodle
* [new branch] MOODLE_13_STABLE -> origin/MOODLE_13_STABLE
* [new branch] MOODLE_14_STABLE -> origin/MOODLE_14_STABLE
* [new branch] MOODLE_15_STABLE -> origin/MOODLE_15_STABLE
* [new branch] MOODLE_16_STABLE -> origin/MOODLE_16_STABLE
* [new branch] MOODLE_17_STABLE -> origin/MOODLE_17_STABLE
* [new branch] MOODLE_18_STABLE -> origin/MOODLE_18_STABLE
* [new branch] MOODLE_19_STABLE -> origin/MOODLE_19_STABLE
* [new branch] MOODLE_20_STABLE -> origin/MOODLE_20_STABLE
* [new branch] MOODLE_21_STABLE -> origin/MOODLE_21_STABLE
* [new branch] MOODLE_22_STABLE -> origin/MOODLE_22_STABLE
* [new branch] MOODLE_23_STABLE -> origin/MOODLE_23_STABLE
* [new branch] MOODLE_24_STABLE -> origin/MOODLE_24_STABLE
* [new branch] MOODLE_25_STABLE -> origin/MOODLE_25_STABLE
* [new branch] MOODLE_26_STABLE -> origin/MOODLE_26_STABLE
* [new branch] MOODLE_27_STABLE -> origin/MOODLE_27_STABLE
* [new branch] MOODLE_28_STABLE -> origin/MOODLE_28_STABLE
* [new branch] MOODLE_29_STABLE -> origin/MOODLE_29_STABLE
* [new branch] MOODLE_30_STABLE -> origin/MOODLE_30_STABLE
* [new branch] MOODLE_310_STABLE -> origin/MOODLE_310_STABLE
* [new branch] MOODLE_311_STABLE -> origin/MOODLE_311_STABLE
* [new branch] MOODLE_31_STABLE -> origin/MOODLE_31_STABLE
* [new branch] MOODLE_32_STABLE -> origin/MOODLE_32_STABLE
* [new branch] MOODLE_33_STABLE -> origin/MOODLE_33_STABLE
* [new branch] MOODLE_34_STABLE -> origin/MOODLE_34_STABLE
* [new branch] MOODLE_35_STABLE -> origin/MOODLE_35_STABLE
* [new branch] MOODLE_36_STABLE -> origin/MOODLE_36_STABLE
* [new branch] MOODLE_37_STABLE -> origin/MOODLE_37_STABLE
* [new branch] MOODLE_38_STABLE -> origin/MOODLE_38_STABLE
* [new branch] MOODLE_39_STABLE -> origin/MOODLE_39_STABLE
* [new branch] MOODLE_400_STABLE -> origin/MOODLE_400_STABLE
* [new branch] MOODLE_401_STABLE -> origin/MOODLE_401_STABLE
* [new branch] MOODLE_402_STABLE -> origin/MOODLE_402_STABLE
* [new branch] MOODLE_403_STABLE -> origin/MOODLE_403_STABLE
* [new branch] MOODLE_404_STABLE -> origin/MOODLE_404_STABLE
* [new branch] main -> origin/main
* [new tag] v1.3.5 -> v1.3.5
* [new tag] v2.0.10 -> v2.0.10
* [new tag] v2.1.10 -> v2.1.10
* [new tag] v2.2.11 -> v2.2.11
* [new tag] v2.3.11 -> v2.3.11
* [new tag] v2.4.11 -> v2.4.11
* [new tag] v2.5.9 -> v2.5.9
* [new tag] v2.7.20 -> v2.7.20
* [new tag] v2.8.12 -> v2.8.12
* [new tag] v3.0.10 -> v3.0.10
* [new tag] v3.1.18 -> v3.1.18
* [new tag] v3.10.11 -> v3.10.11
* [new tag] v3.11.18 -> v3.11.18
* [new tag] v3.2.9 -> v3.2.9
* [new tag] v3.4.9 -> v3.4.9
* [new tag] v3.5.18 -> v3.5.18
* [new tag] v3.6.10 -> v3.6.10
* [new tag] v3.7.9 -> v3.7.9
* [new tag] v3.8.9 -> v3.8.9
* [new tag] v3.9.25 -> v3.9.25
* [new tag] v4.0.12 -> v4.0.12
* [new tag] v1.0.0 -> v1.0.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1.0 -> v1.1.0
* [new tag] v1.1.1 -> v1.1.1
* [new tag] v1.2.0 -> v1.2.0
* [new tag] v1.2.1 -> v1.2.1
* [new tag] v1.3.0 -> v1.3.0
* [new tag] v1.3.1 -> v1.3.1
* [new tag] v1.3.2 -> v1.3.2
* [new tag] v1.3.3 -> v1.3.3
* [new tag] v1.3.4 -> v1.3.4
* [new tag] v1.4.0 -> v1.4.0
* [new tag] v1.4.1 -> v1.4.1
* [new tag] v1.4.2 -> v1.4.2
* [new tag] v1.4.3 -> v1.4.3
* [new tag] v1.4.4 -> v1.4.4
* [new tag] v1.4.5 -> v1.4.5
* [new tag] v1.5.0 -> v1.5.0
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.5.2 -> v1.5.2
* [new tag] v1.5.3 -> v1.5.3
* [new tag] v1.5.4 -> v1.5.4
* [new tag] v1.6.0 -> v1.6.0
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.6.2 -> v1.6.2
* [new tag] v1.6.3 -> v1.6.3
* [new tag] v1.6.4 -> v1.6.4
* [new tag] v1.6.5 -> v1.6.5
* [new tag] v1.6.6 -> v1.6.6
* [new tag] v1.6.7 -> v1.6.7
* [new tag] v1.6.8 -> v1.6.8
* [new tag] v1.6.9 -> v1.6.9
* [new tag] v1.7.0 -> v1.7.0
* [new tag] v1.7.1 -> v1.7.1
* [new tag] v1.7.2 -> v1.7.2
* [new tag] v1.7.3 -> v1.7.3
* [new tag] v1.7.4 -> v1.7.4
* [new tag] v1.7.5 -> v1.7.5
* [new tag] v1.7.6 -> v1.7.6
* [new tag] v1.7.7 -> v1.7.7
* [new tag] v1.8.0 -> v1.8.0
* [new tag] v1.8.1 -> v1.8.1
* [new tag] v1.8.10 -> v1.8.10
* [new tag] v1.8.11 -> v1.8.11
* [new tag] v1.8.12 -> v1.8.12
* [new tag] v1.8.13 -> v1.8.13
* [new tag] v1.8.14 -> v1.8.14
* [new tag] v1.8.2 -> v1.8.2
* [new tag] v1.8.3 -> v1.8.3
* [new tag] v1.8.4 -> v1.8.4
* [new tag] v1.8.5 -> v1.8.5
* [new tag] v1.8.6 -> v1.8.6
* [new tag] v1.8.7 -> v1.8.7
* [new tag] v1.8.8 -> v1.8.8
* [new tag] v1.8.9 -> v1.8.9
* [new tag] v1.9.0 -> v1.9.0
* [new tag] v1.9.1 -> v1.9.1
* [new tag] v1.9.10 -> v1.9.10
* [new tag] v1.9.11 -> v1.9.11
* [new tag] v1.9.12 -> v1.9.12
* [new tag] v1.9.13 -> v1.9.13
* [new tag] v1.9.14 -> v1.9.14
* [new tag] v1.9.15 -> v1.9.15
* [new tag] v1.9.16 -> v1.9.16
* [new tag] v1.9.17 -> v1.9.17
* [new tag] v1.9.18 -> v1.9.18
* [new tag] v1.9.19 -> v1.9.19
* [new tag] v1.9.2 -> v1.9.2
* [new tag] v1.9.3 -> v1.9.3
* [new tag] v1.9.4 -> v1.9.4
* [new tag] v1.9.5 -> v1.9.5
* [new tag] v1.9.6 -> v1.9.6
* [new tag] v1.9.7 -> v1.9.7
* [new tag] v1.9.8 -> v1.9.8
* [new tag] v1.9.9 -> v1.9.9
* [new tag] v2.0.0 -> v2.0.0
* [new tag] v2.0.0-rc1 -> v2.0.0-rc1
* [new tag] v2.0.0-rc2 -> v2.0.0-rc2
* [new tag] v2.0.1 -> v2.0.1
* [new tag] v2.0.2 -> v2.0.2
* [new tag] v2.0.3 -> v2.0.3
* [new tag] v2.0.4 -> v2.0.4
* [new tag] v2.0.5 -> v2.0.5
* [new tag] v2.0.6 -> v2.0.6
* [new tag] v2.0.7 -> v2.0.7
* [new tag] v2.0.8 -> v2.0.8
* [new tag] v2.0.9 -> v2.0.9
* [new tag] v2.1.0 -> v2.1.0
* [new tag] v2.1.1 -> v2.1.1
* [new tag] v2.1.2 -> v2.1.2
* [new tag] v2.1.3 -> v2.1.3
* [new tag] v2.1.4 -> v2.1.4
* [new tag] v2.1.5 -> v2.1.5
* [new tag] v2.1.6 -> v2.1.6
* [new tag] v2.1.7 -> v2.1.7
* [new tag] v2.1.8 -> v2.1.8
* [new tag] v2.1.9 -> v2.1.9
* [new tag] v2.2.0 -> v2.2.0
* [new tag] v2.2.0-beta -> v2.2.0-beta
* [new tag] v2.2.0-rc1 -> v2.2.0-rc1
* [new tag] v2.2.1 -> v2.2.1
* [new tag] v2.2.10 -> v2.2.10
* [new tag] v2.2.2 -> v2.2.2
* [new tag] v2.2.3 -> v2.2.3
* [new tag] v2.2.4 -> v2.2.4
* [new tag] v2.2.5 -> v2.2.5
* [new tag] v2.2.6 -> v2.2.6
* [new tag] v2.2.7 -> v2.2.7
* [new tag] v2.2.8 -> v2.2.8
* [new tag] v2.2.9 -> v2.2.9
* [new tag] v2.3.0 -> v2.3.0
* [new tag] v2.3.0-beta -> v2.3.0-beta
* [new tag] v2.3.0-rc1 -> v2.3.0-rc1
* [new tag] v2.3.1 -> v2.3.1
* [new tag] v2.3.10 -> v2.3.10
* [new tag] v2.3.2 -> v2.3.2
* [new tag] v2.3.3 -> v2.3.3
* [new tag] v2.3.4 -> v2.3.4
* [new tag] v2.3.5 -> v2.3.5
* [new tag] v2.3.6 -> v2.3.6
* [new tag] v2.3.7 -> v2.3.7
* [new tag] v2.3.8 -> v2.3.8
* [new tag] v2.3.9 -> v2.3.9
* [new tag] v2.4.0 -> v2.4.0
* [new tag] v2.4.0-beta -> v2.4.0-beta
* [new tag] v2.4.0-rc1 -> v2.4.0-rc1
* [new tag] v2.4.1 -> v2.4.1
* [new tag] v2.4.10 -> v2.4.10
* [new tag] v2.4.2 -> v2.4.2
* [new tag] v2.4.3 -> v2.4.3
* [new tag] v2.4.4 -> v2.4.4
* [new tag] v2.4.5 -> v2.4.5
* [new tag] v2.4.6 -> v2.4.6
* [new tag] v2.4.7 -> v2.4.7
* [new tag] v2.4.8 -> v2.4.8
* [new tag] v2.4.9 -> v2.4.9
* [new tag] v2.5.0 -> v2.5.0
* [new tag] v2.5.0-beta -> v2.5.0-beta
* [new tag] v2.5.0-rc1 -> v2.5.0-rc1
* [new tag] v2.5.1 -> v2.5.1
* [new tag] v2.5.2 -> v2.5.2
* [new tag] v2.5.3 -> v2.5.3
* [new tag] v2.5.4 -> v2.5.4
* [new tag] v2.5.5 -> v2.5.5
* [new tag] v2.5.6 -> v2.5.6
* [new tag] v2.5.7 -> v2.5.7
* [new tag] v2.5.8 -> v2.5.8
* [new tag] v2.6.0 -> v2.6.0
* [new tag] v2.6.0-beta -> v2.6.0-beta
* [new tag] v2.6.0-rc1 -> v2.6.0-rc1
* [new tag] v2.6.1 -> v2.6.1
* [new tag] v2.6.10 -> v2.6.10
* [new tag] v2.6.11 -> v2.6.11
* [new tag] v2.6.2 -> v2.6.2
* [new tag] v2.6.3 -> v2.6.3
* [new tag] v2.6.4 -> v2.6.4
* [new tag] v2.6.5 -> v2.6.5
* [new tag] v2.6.6 -> v2.6.6
* [new tag] v2.6.7 -> v2.6.7
* [new tag] v2.6.8 -> v2.6.8
* [new tag] v2.6.9 -> v2.6.9
* [new tag] v2.7.0 -> v2.7.0
* [new tag] v2.7.0-beta -> v2.7.0-beta
* [new tag] v2.7.0-rc1 -> v2.7.0-rc1
* [new tag] v2.7.0-rc2 -> v2.7.0-rc2
* [new tag] v2.7.1 -> v2.7.1
* [new tag] v2.7.10 -> v2.7.10
* [new tag] v2.7.11 -> v2.7.11
* [new tag] v2.7.12 -> v2.7.12
* [new tag] v2.7.13 -> v2.7.13
* [new tag] v2.7.14 -> v2.7.14
* [new tag] v2.7.15 -> v2.7.15
* [new tag] v2.7.16 -> v2.7.16
* [new tag] v2.7.17 -> v2.7.17
* [new tag] v2.7.18 -> v2.7.18
* [new tag] v2.7.19 -> v2.7.19
* [new tag] v2.7.2 -> v2.7.2
* [new tag] v2.7.3 -> v2.7.3
* [new tag] v2.7.4 -> v2.7.4
* [new tag] v2.7.5 -> v2.7.5
* [new tag] v2.7.6 -> v2.7.6
* [new tag] v2.7.7 -> v2.7.7
* [new tag] v2.7.8 -> v2.7.8
* [new tag] v2.7.9 -> v2.7.9
* [new tag] v2.8.0 -> v2.8.0
* [new tag] v2.8.0-beta -> v2.8.0-beta
* [new tag] v2.8.0-rc1 -> v2.8.0-rc1
* [new tag] v2.8.0-rc2 -> v2.8.0-rc2
* [new tag] v2.8.1 -> v2.8.1
* [new tag] v2.8.10 -> v2.8.10
* [new tag] v2.8.11 -> v2.8.11
* [new tag] v2.8.2 -> v2.8.2
* [new tag] v2.8.3 -> v2.8.3
* [new tag] v2.8.4 -> v2.8.4
* [new tag] v2.8.5 -> v2.8.5
* [new tag] v2.8.6 -> v2.8.6
* [new tag] v2.8.7 -> v2.8.7
* [new tag] v2.8.8 -> v2.8.8
* [new tag] v2.8.9 -> v2.8.9
* [new tag] v2.9.0 -> v2.9.0
* [new tag] v2.9.0-beta -> v2.9.0-beta
* [new tag] v2.9.0-rc1 -> v2.9.0-rc1
* [new tag] v2.9.0-rc2 -> v2.9.0-rc2
* [new tag] v2.9.1 -> v2.9.1
* [new tag] v2.9.2 -> v2.9.2
* [new tag] v2.9.3 -> v2.9.3
* [new tag] v2.9.4 -> v2.9.4
* [new tag] v2.9.5 -> v2.9.5
* [new tag] v2.9.6 -> v2.9.6
* [new tag] v2.9.7 -> v2.9.7
* [new tag] v2.9.8 -> v2.9.8
* [new tag] v2.9.9 -> v2.9.9
* [new tag] v3.0.0 -> v3.0.0
* [new tag] v3.0.0-beta -> v3.0.0-beta
* [new tag] v3.0.0-rc1 -> v3.0.0-rc1
* [new tag] v3.0.0-rc2 -> v3.0.0-rc2
* [new tag] v3.0.0-rc3 -> v3.0.0-rc3
* [new tag] v3.0.0-rc4 -> v3.0.0-rc4
* [new tag] v3.0.1 -> v3.0.1
* [new tag] v3.0.2 -> v3.0.2
* [new tag] v3.0.3 -> v3.0.3
* [new tag] v3.0.4 -> v3.0.4
* [new tag] v3.0.5 -> v3.0.5
* [new tag] v3.0.6 -> v3.0.6
* [new tag] v3.0.7 -> v3.0.7
* [new tag] v3.0.8 -> v3.0.8
* [new tag] v3.0.9 -> v3.0.9
* [new tag] v3.1.0 -> v3.1.0
* [new tag] v3.1.0-beta -> v3.1.0-beta
* [new tag] v3.1.0-rc1 -> v3.1.0-rc1
* [new tag] v3.1.0-rc2 -> v3.1.0-rc2
* [new tag] v3.1.1 -> v3.1.1
* [new tag] v3.1.10 -> v3.1.10
* [new tag] v3.1.11 -> v3.1.11
* [new tag] v3.1.12 -> v3.1.12
* [new tag] v3.1.13 -> v3.1.13
* [new tag] v3.1.14 -> v3.1.14
* [new tag] v3.1.15 -> v3.1.15
* [new tag] v3.1.16 -> v3.1.16
* [new tag] v3.1.17 -> v3.1.17
* [new tag] v3.1.2 -> v3.1.2
* [new tag] v3.1.3 -> v3.1.3
* [new tag] v3.1.4 -> v3.1.4
* [new tag] v3.1.5 -> v3.1.5
* [new tag] v3.1.6 -> v3.1.6
* [new tag] v3.1.7 -> v3.1.7
* [new tag] v3.1.8 -> v3.1.8
* [new tag] v3.1.9 -> v3.1.9
* [new tag] v3.10.0 -> v3.10.0
* [new tag] v3.10.0-beta -> v3.10.0-beta
* [new tag] v3.10.0-rc1 -> v3.10.0-rc1
* [new tag] v3.10.0-rc2 -> v3.10.0-rc2
* [new tag] v3.10.1 -> v3.10.1
* [new tag] v3.10.10 -> v3.10.10
* [new tag] v3.10.2 -> v3.10.2
* [new tag] v3.10.3 -> v3.10.3
* [new tag] v3.10.4 -> v3.10.4
* [new tag] v3.10.5 -> v3.10.5
* [new tag] v3.10.6 -> v3.10.6
* [new tag] v3.10.7 -> v3.10.7
* [new tag] v3.10.8 -> v3.10.8
* [new tag] v3.10.9 -> v3.10.9
* [new tag] v3.11.0 -> v3.11.0
* [new tag] v3.11.0-beta -> v3.11.0-beta
* [new tag] v3.11.0-rc1 -> v3.11.0-rc1
* [new tag] v3.11.0-rc2 -> v3.11.0-rc2
* [new tag] v3.11.1 -> v3.11.1
* [new tag] v3.11.10 -> v3.11.10
* [new tag] v3.11.11 -> v3.11.11
* [new tag] v3.11.12 -> v3.11.12
* [new tag] v3.11.13 -> v3.11.13
* [new tag] v3.11.14 -> v3.11.14
* [new tag] v3.11.15 -> v3.11.15
* [new tag] v3.11.16 -> v3.11.16
* [new tag] v3.11.17 -> v3.11.17
* [new tag] v3.11.2 -> v3.11.2
* [new tag] v3.11.3 -> v3.11.3
* [new tag] v3.11.4 -> v3.11.4
* [new tag] v3.11.5 -> v3.11.5
* [new tag] v3.11.6 -> v3.11.6
* [new tag] v3.11.7 -> v3.11.7
* [new tag] v3.11.8 -> v3.11.8
* [new tag] v3.11.9 -> v3.11.9
* [new tag] v3.2.0 -> v3.2.0
* [new tag] v3.2.0-beta -> v3.2.0-beta
* [new tag] v3.2.0-rc1 -> v3.2.0-rc1
* [new tag] v3.2.0-rc2 -> v3.2.0-rc2
* [new tag] v3.2.0-rc3 -> v3.2.0-rc3
* [new tag] v3.2.0-rc4 -> v3.2.0-rc4
* [new tag] v3.2.0-rc5 -> v3.2.0-rc5
* [new tag] v3.2.1 -> v3.2.1
* [new tag] v3.2.2 -> v3.2.2
* [new tag] v3.2.3 -> v3.2.3
* [new tag] v3.2.4 -> v3.2.4
* [new tag] v3.2.5 -> v3.2.5
* [new tag] v3.2.6 -> v3.2.6
* [new tag] v3.2.7 -> v3.2.7
* [new tag] v3.2.8 -> v3.2.8
* [new tag] v3.3.0 -> v3.3.0
* [new tag] v3.3.0-beta -> v3.3.0-beta
* [new tag] v3.3.0-rc1 -> v3.3.0-rc1
* [new tag] v3.3.0-rc2 -> v3.3.0-rc2
* [new tag] v3.3.0-rc3 -> v3.3.0-rc3
* [new tag] v3.3.1 -> v3.3.1
* [new tag] v3.3.2 -> v3.3.2
* [new tag] v3.3.3 -> v3.3.3
* [new tag] v3.3.4 -> v3.3.4
* [new tag] v3.3.5 -> v3.3.5
* [new tag] v3.3.6 -> v3.3.6
* [new tag] v3.3.7 -> v3.3.7
* [new tag] v3.3.8 -> v3.3.8
* [new tag] v3.3.9 -> v3.3.9
* [new tag] v3.4.0 -> v3.4.0
* [new tag] v3.4.0-beta -> v3.4.0-beta
* [new tag] v3.4.0-rc1 -> v3.4.0-rc1
* [new tag] v3.4.0-rc2 -> v3.4.0-rc2
* [new tag] v3.4.0-rc3 -> v3.4.0-rc3
* [new tag] v3.4.1 -> v3.4.1
* [new tag] v3.4.2 -> v3.4.2
* [new tag] v3.4.3 -> v3.4.3
* [new tag] v3.4.4 -> v3.4.4
* [new tag] v3.4.5 -> v3.4.5
* [new tag] v3.4.6 -> v3.4.6
* [new tag] v3.4.7 -> v3.4.7
* [new tag] v3.4.8 -> v3.4.8
* [new tag] v3.5.0 -> v3.5.0
* [new tag] v3.5.0-beta -> v3.5.0-beta
* [new tag] v3.5.0-rc1 -> v3.5.0-rc1
* [new tag] v3.5.1 -> v3.5.1
* [new tag] v3.5.10 -> v3.5.10
* [new tag] v3.5.11 -> v3.5.11
* [new tag] v3.5.12 -> v3.5.12
* [new tag] v3.5.13 -> v3.5.13
* [new tag] v3.5.14 -> v3.5.14
* [new tag] v3.5.15 -> v3.5.15
* [new tag] v3.5.16 -> v3.5.16
* [new tag] v3.5.17 -> v3.5.17
* [new tag] v3.5.2 -> v3.5.2
* [new tag] v3.5.3 -> v3.5.3
* [new tag] v3.5.4 -> v3.5.4
* [new tag] v3.5.5 -> v3.5.5
* [new tag] v3.5.6 -> v3.5.6
* [new tag] v3.5.7 -> v3.5.7
* [new tag] v3.5.8 -> v3.5.8
* [new tag] v3.5.9 -> v3.5.9
* [new tag] v3.6.0 -> v3.6.0
* [new tag] v3.6.0-beta -> v3.6.0-beta
* [new tag] v3.6.0-rc1 -> v3.6.0-rc1
* [new tag] v3.6.0-rc2 -> v3.6.0-rc2
* [new tag] v3.6.0-rc3 -> v3.6.0-rc3
* [new tag] v3.6.1 -> v3.6.1
* [new tag] v3.6.2 -> v3.6.2
* [new tag] v3.6.3 -> v3.6.3
* [new tag] v3.6.4 -> v3.6.4
* [new tag] v3.6.5 -> v3.6.5
* [new tag] v3.6.6 -> v3.6.6
* [new tag] v3.6.7 -> v3.6.7
* [new tag] v3.6.8 -> v3.6.8
* [new tag] v3.6.9 -> v3.6.9
* [new tag] v3.7.0 -> v3.7.0
* [new tag] v3.7.0-beta -> v3.7.0-beta
* [new tag] v3.7.0-rc1 -> v3.7.0-rc1
* [new tag] v3.7.0-rc2 -> v3.7.0-rc2
* [new tag] v3.7.1 -> v3.7.1
* [new tag] v3.7.2 -> v3.7.2
* [new tag] v3.7.3 -> v3.7.3
* [new tag] v3.7.4 -> v3.7.4
* [new tag] v3.7.5 -> v3.7.5
* [new tag] v3.7.6 -> v3.7.6
* [new tag] v3.7.7 -> v3.7.7
* [new tag] v3.7.8 -> v3.7.8
* [new tag] v3.8.0 -> v3.8.0
* [new tag] v3.8.0-beta -> v3.8.0-beta
* [new tag] v3.8.0-rc1 -> v3.8.0-rc1
* [new tag] v3.8.1 -> v3.8.1
* [new tag] v3.8.2 -> v3.8.2
* [new tag] v3.8.3 -> v3.8.3
* [new tag] v3.8.4 -> v3.8.4
* [new tag] v3.8.5 -> v3.8.5
* [new tag] v3.8.6 -> v3.8.6
* [new tag] v3.8.7 -> v3.8.7
* [new tag] v3.8.8 -> v3.8.8
* [new tag] v3.9.0 -> v3.9.0
* [new tag] v3.9.0-beta -> v3.9.0-beta
* [new tag] v3.9.0-rc1 -> v3.9.0-rc1
* [new tag] v3.9.0-rc2 -> v3.9.0-rc2
* [new tag] v3.9.0-rc3 -> v3.9.0-rc3
* [new tag] v3.9.1 -> v3.9.1
* [new tag] v3.9.10 -> v3.9.10
* [new tag] v3.9.11 -> v3.9.11
* [new tag] v3.9.12 -> v3.9.12
* [new tag] v3.9.13 -> v3.9.13
* [new tag] v3.9.14 -> v3.9.14
* [new tag] v3.9.15 -> v3.9.15
* [new tag] v3.9.16 -> v3.9.16
* [new tag] v3.9.17 -> v3.9.17
* [new tag] v3.9.18 -> v3.9.18
* [new tag] v3.9.19 -> v3.9.19
* [new tag] v3.9.2 -> v3.9.2
* [new tag] v3.9.20 -> v3.9.20
* [new tag] v3.9.21 -> v3.9.21
* [new tag] v3.9.22 -> v3.9.22
* [new tag] v3.9.23 -> v3.9.23
* [new tag] v3.9.24 -> v3.9.24
* [new tag] v3.9.3 -> v3.9.3
* [new tag] v3.9.4 -> v3.9.4
* [new tag] v3.9.5 -> v3.9.5
* [new tag] v3.9.6 -> v3.9.6
* [new tag] v3.9.7 -> v3.9.7
* [new tag] v3.9.8 -> v3.9.8
* [new tag] v3.9.9 -> v3.9.9
* [new tag] v4.0.0 -> v4.0.0
* [new tag] v4.0.0-beta -> v4.0.0-beta
* [new tag] v4.0.0-rc1 -> v4.0.0-rc1
* [new tag] v4.0.0-rc2 -> v4.0.0-rc2
* [new tag] v4.0.0-rc3 -> v4.0.0-rc3
* [new tag] v4.0.0-rc4 -> v4.0.0-rc4
* [new tag] v4.0.1 -> v4.0.1
* [new tag] v4.0.10 -> v4.0.10
* [new tag] v4.0.11 -> v4.0.11
* [new tag] v4.0.2 -> v4.0.2
* [new tag] v4.0.3 -> v4.0.3
* [new tag] v4.0.4 -> v4.0.4
* [new tag] v4.0.5 -> v4.0.5
* [new tag] v4.0.6 -> v4.0.6
* [new tag] v4.0.7 -> v4.0.7
* [new tag] v4.0.8 -> v4.0.8
* [new tag] v4.0.9 -> v4.0.9
* [new tag] v4.1.0 -> v4.1.0
* [new tag] v4.1.0-beta -> v4.1.0-beta
* [new tag] v4.1.0-rc1 -> v4.1.0-rc1
* [new tag] v4.1.0-rc2 -> v4.1.0-rc2
* [new tag] v4.1.0-rc3 -> v4.1.0-rc3
* [new tag] v4.1.1 -> v4.1.1
* [new tag] v4.1.10 -> v4.1.10
* [new tag] v4.1.11 -> v4.1.11
* [new tag] v4.1.12 -> v4.1.12
* [new tag] v4.1.13 -> v4.1.13
* [new tag] v4.1.2 -> v4.1.2
* [new tag] v4.1.3 -> v4.1.3
* [new tag] v4.1.4 -> v4.1.4
* [new tag] v4.1.5 -> v4.1.5
* [new tag] v4.1.6 -> v4.1.6
* [new tag] v4.1.7 -> v4.1.7
* [new tag] v4.1.8 -> v4.1.8
* [new tag] v4.1.9 -> v4.1.9
* [new tag] v4.2.0 -> v4.2.0
* [new tag] v4.2.0-beta -> v4.2.0-beta
* [new tag] v4.2.0-rc1 -> v4.2.0-rc1
* [new tag] v4.2.0-rc2 -> v4.2.0-rc2
* [new tag] v4.2.1 -> v4.2.1
* [new tag] v4.2.10 -> v4.2.10
* [new tag] v4.2.2 -> v4.2.2
* [new tag] v4.2.3 -> v4.2.3
* [new tag] v4.2.4 -> v4.2.4
* [new tag] v4.2.5 -> v4.2.5
* [new tag] v4.2.6 -> v4.2.6
* [new tag] v4.2.7 -> v4.2.7
* [new tag] v4.2.8 -> v4.2.8
* [new tag] v4.2.9 -> v4.2.9
* [new tag] v4.3.0 -> v4.3.0
* [new tag] v4.3.0-beta -> v4.3.0-beta
* [new tag] v4.3.0-rc1 -> v4.3.0-rc1
* [new tag] v4.3.0-rc2 -> v4.3.0-rc2
* [new tag] v4.3.1 -> v4.3.1
* [new tag] v4.3.2 -> v4.3.2
* [new tag] v4.3.3 -> v4.3.3
* [new tag] v4.3.4 -> v4.3.4
* [new tag] v4.3.5 -> v4.3.5
* [new tag] v4.3.6 -> v4.3.6
* [new tag] v4.3.7 -> v4.3.7
* [new tag] v4.4.0 -> v4.4.0
* [new tag] v4.4.0-beta -> v4.4.0-beta
* [new tag] v4.4.0-rc1 -> v4.4.0-rc1
* [new tag] v4.4.0-rc2 -> v4.4.0-rc2
* [new tag] v4.4.1 -> v4.4.1
* [new tag] v4.4.2 -> v4.4.2
* [new tag] v4.4.3 -> v4.4.3
Now when I issue:
git branch -a
I see the branches.
remotes/origin/MOODLE_13_STABLE
remotes/origin/MOODLE_14_STABLE
remotes/origin/MOODLE_15_STABLE
remotes/origin/MOODLE_16_STABLE
remotes/origin/MOODLE_17_STABLE
remotes/origin/MOODLE_18_STABLE
remotes/origin/MOODLE_19_STABLE
remotes/origin/MOODLE_20_STABLE
remotes/origin/MOODLE_21_STABLE
remotes/origin/MOODLE_22_STABLE
remotes/origin/MOODLE_23_STABLE
remotes/origin/MOODLE_24_STABLE
remotes/origin/MOODLE_25_STABLE
remotes/origin/MOODLE_26_STABLE
remotes/origin/MOODLE_27_STABLE
remotes/origin/MOODLE_28_STABLE
remotes/origin/MOODLE_29_STABLE
remotes/origin/MOODLE_30_STABLE
remotes/origin/MOODLE_310_STABLE
remotes/origin/MOODLE_311_STABLE
remotes/origin/MOODLE_31_STABLE
remotes/origin/MOODLE_32_STABLE
remotes/origin/MOODLE_33_STABLE
remotes/origin/MOODLE_34_STABLE
remotes/origin/MOODLE_35_STABLE
remotes/origin/MOODLE_36_STABLE
remotes/origin/MOODLE_37_STABLE
remotes/origin/MOODLE_38_STABLE
remotes/origin/MOODLE_39_STABLE
remotes/origin/MOODLE_400_STABLE
remotes/origin/MOODLE_401_STABLE
remotes/origin/MOODLE_402_STABLE
remotes/origin/MOODLE_403_STABLE
remotes/origin/MOODLE_404_STABLE
remotes/origin/main
But ... now I can re-issue:
git checkout -b MOODLE_404_STABLE
Switched to a new branch 'MOODLE_404_STABLE'
git checkout MOODLE_404_STABLE
But:
error: The following untracked working tree files would be overwritten by checkout:
.eslintrc
.gherkin-lintrc
.gitattributes
.github/FUNDING.yml
.github/PULL_REQUEST_TEMPLATE.txt
.github/SECURITY.md
.github/moodlelogo.svg
.github/workflows/close-pull-requests.yml
.github/workflows/config-template.php
.github/workflows/onebyone.yml
.github/workflows/push.yml
.github/workflows/web-installer-test.yml
.github/workflows/windows.yml
.grunt/babel-plugin-add-module-to-define.js
.grunt/components.js
.grunt/jsdoc/README.md
.grunt/jsdoc/jsdoc.conf.js
.grunt/tasks/componentlibrary.js
.grunt/tasks/eslint.js
.grunt/tasks/gherkinlint.js
.grunt/tasks/ignorefiles.js
.grunt/tasks/javascript.js
.grunt/tasks/jsconfig.js
.grunt/tasks/jsdoc.js
.grunt/tasks/sass.js
.grunt/tasks/shifter.js
.grunt/tasks/startup.js
.grunt/tasks/style.js
.grunt/tasks/stylelint.js
.grunt/tasks/upgradablelibs.js
.grunt/tasks/watch.js
.jshintignore
.jshintrc
.nvmrc
.phpstorm.meta.php/di.php
.shifter.json
.stylelintrc
CONTRIBUTING.md
COPYING.txt
Gruntfile.js
INSTALL.txt
README.md
TRADEMARK.txt
admin/amd/build/block_management_table.min.js
admin/amd/build/block_management_table.min.js.map
admin/amd/build/bulk_user_actions.min.js
admin/amd/build/bulk_user_actions.min.js.map
admin/amd/build/plugin_management_table.min.js
admin/amd/build/plugin_management_table.min.js.map
admin/amd/build/themeselector/preview_modal.min.js
admin/amd/build/themeselector/preview_modal.min.js.map
admin/amd/src/block_management_table.js
admin/amd/src/bulk_user_actions.js
admin/amd/src/plugin_management_table.js
admin/amd/src/themeselector/preview_modal.js
admin/antiviruses.php
admin/auth.php
admin/blocks.php
admin/category.php
admin/classes/admin/admin_setting_plugin_manager.php
admin/classes/external/set_block_protection.php
admin/classes/external/set_plugin_order.php
admin/classes/external/set_plugin_state.php
admin/classes/form/purge_caches.php
admin/classes/form/testoutgoingmailconf_form.php
admin/classes/local/externalpage/accesscallback.php
admin/classes/local/settings/autocomplete.php
admin/classes/local/settings/filesize.php
admin/classes/local/settings/linkable_settings_page.php
admin/classes/local/settings/manage_payment_gateway_plugins.php
admin/classes/local/settings/setting_scheduled_task_status.php
admin/classes/output/theme_selector.php
admin/classes/privacy/provider.php
admin/classes/reportbuilder/datasource/task_logs.php
admin/classes/reportbuilder/local/entities/task_log.php
admin/classes/reportbuilder/local/filters/courserole.php
admin/classes/reportbuilder/local/systemreports/task_logs.php
admin/classes/reportbuilder/local/systemreports/users.php
admin/classes/table/activity_management_table.php
admin/classes/table/block_management_table.php
admin/classes/table/editor_management_table.php
admin/classes/table/hook_list_table.php
admin/classes/table/media_management_table.php
admin/classes/table/plugin_management_table.php
admin/classes/table/plugin_management_table_filterset.php
admin/classes/table/tool_plugin_management_table.php
admin/cli/adhoc_task.php
admin/cli/alternative_component_cache.php
admin/cli/automated_backups.php
admin/cli/backup.php
admin/cli/build_theme_css.php
admin/cli/cfg.php
admin/cli/check_database_schema.php
admin/cli/checks.php
admin/cli/cron.php
admin/cli/dashboard_reset.php
admin/cli/delete_course.php
admin/cli/emailstop.php
admin/cli/fix_course_sequence.php
admin/cli/fix_deleted_users.php
admin/cli/fix_orphaned_calendar_events.php
admin/cli/fix_orphaned_question_categories.php
admin/cli/generate_key.php
admin/cli/import.php
admin/cli/install.php
admin/cli/install_database.php
admin/cli/kill_all_sessions.php
admin/cli/maintenance.php
admin/cli/mysql_collation.php
admin/cli/mysql_compressed_rows.php
admin/cli/purge_caches.php
admin/cli/reset_password.php
admin/cli/restore_backup.php
admin/cli/scheduled_task.php
admin/cli/svgtool.php
admin/cli/uninstall_plugins.php
admin/cli/upgrade.php
admin/communication.php
admin/contentbank.php
admin/c
Aborting
If I do a git pull
git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> MOODLE_404_STABLE
which is what you saw.
THE FIX:
git fetch origin MOODLE_404_STABLE:LOCAL_MOODLE_404_STABLE
Returns:
From https://github.com/moodle/moodle
* [new branch] MOODLE_404_STABLE -> LOCAL_MOODLE_404_STABLE
now when I check
git branch -a
I see
LOCAL_MOODLE_404_STABLE
at the top but no tracking *
git branch --track MOODLE_404_STABLE origin/MOODLE_404_STABLE
now check again
git branch -a
and I see:
LOCAL_MOODLE_404_STABLE
* MOODLE_404_STABLE
at the top - * indicates what branch tracking.
and finally ... FINALLY ... AFTER ALL THAT:
git pull
Already up to date
which is what I should see.
code directory now under git.
Here's my git history for above:
453 git init
454 git remote add origin https://github.com/moodle/moodle/
455 git checkout -b MOODLE_404_STABLE
456 git branch -a
457 git branch
460 git pull
462 git pull
463 git branch -a
475 git init
476 git remote add origin https://github.com/moodle/moodle/
477 git checkout -b MOODLE_404_STABLE
478 git pull
479 git branch --set-upstream-to=origin/main MOODLE_404_STABLE
481 git branch -a
482 git branch --set-upstream-to=remotes/origin/MOODLE_404_STABLE MOODLE_404_STABLE
483 git branch --set-upstream-to=remotes/origin/MOODLE_404_STABLE
484 git branch --set-upstream-to=remotes/origin/main
485 git branch –track MOODLE_404_STABLE origin/MOODLE_404_STABLE
486 git branch --set-upstream-to=remotes/origin/MOODLE_401_STABLE
487 git branch -a
488 git branch --set-upstream-to=remotes/origin/MOODLE_404_STABLE
489 git branch --set-upstream-to='remotes/origin/MOODLE_404_STABLE'
495 git pull
498 ls -l .git*
499 git branch -a
507 git init
508 git remote add origin https://github.com/moodle/moodle/
509 git branch -a
510 git checkout MOODLE_404_STABLE
512 git remote add origin https://github.com/moodle/moodle
513 git checkout -b MOODLE_404_STABLE
514 git branch -a
515 cd .git
521 git fetch
522 git branch -a
524 git checkout -b MOODLE_404_STABLE
525 git checkout MOODLE_404_STABLE
526 git checkout -b MOODLE_404_STABLE
527 git pull
528 git pull remotes/origin/main /MOODLE_404_STABLE
529 git pull remotes/origin/main 404
530 git branch -a
532 git checkout MOODLE_404_STABLE
533 git checkout -b MOODLE_404_STABLE
534 git branch -a
535 git fetch origin MOODLE_404_STABLE:LOCAL_MOODLE_404_STABLE
536 git branch -a
537 git branch --track MOODLE_404_STABLE origin/MOODLE_404_STABLE
538 git branch -a
539 git pull
540 history |grep git
What does yours look like?
I know what is easier ... GITIFY! Plus added value of 3 useful bash shell scripts that one will use in maintaining a git Moodle.
Let me repeat:
I know what is easier ... GITIFY! Plus added value of 3 useful bash shell scripts that one will use in maintaining a git Moodle.
'SoS', Ken