`git checkout devel` fails

25 views
Skip to first unread message

Terrence-Monroe: Brannon

unread,
Oct 19, 2022, 1:17:18 PM10/19/22
to leo-editor
I forked leo and then cloned my fork and then attempted to switch to the devel branch and it failed.

Is there not a contributing section in the official docs that shows one how to get started? 

cmd.exe shell transcript follows:

C:\code>git clone g...@github.com:metaperl/leo-editor.git
Cloning into 'leo-editor'...
remote: Enumerating objects: 200803, done.
remote: Counting objects: 100% (828/828), done.
remote: Compressing objects: 100% (247/247), done.
remote: Total 200803 (delta 603), reused 782 (delta 581), pack-reused 199975
Receiving objects: 100% (200803/200803), 214.89 MiB | 33.58 MiB/s, done.
Resolving deltas: 100% (158737/158737), done.

C:\code>cd leo-editor

C:\code\leo-editor>git checkout devel
error: pathspec 'devel' did not match any file(s) known to git

C:\code\leo-editor>
C:\code\leo-editor>dir
 Volume in drive C is Windows-SSD
 Volume Serial Number is 1C11-C7CE

 Directory of C:\code\leo-editor

10/19/2022  01:07 PM    <DIR>          .
10/19/2022  01:05 PM    <DIR>          ..
10/19/2022  01:05 PM               512 .coveragerc
10/19/2022  01:05 PM               712 .gitattributes
10/19/2022  01:05 PM             2,329 .gitignore
10/19/2022  01:07 PM    <DIR>          .idea
10/19/2022  01:05 PM             2,897 .mypy.ini
10/19/2022  01:05 PM            48,406 ekr-spellpyx.txt
10/19/2022  01:05 PM           241,667 git-manifest.txt
10/19/2022  01:05 PM               145 launchLeo-console.py
10/19/2022  01:05 PM               167 launchLeo.py
10/19/2022  01:05 PM    <DIR>          leo
10/19/2022  01:05 PM             1,762 leo-commands.cfg
10/19/2022  01:05 PM             1,754 leo-core.cfg
10/19/2022  01:05 PM             1,760 leo-plugins.cfg
10/19/2022  01:05 PM             4,956 leo_to_html.xsl
10/19/2022  01:05 PM             1,789 LICENSE
10/19/2022  01:05 PM               977 MANIFEST.in
10/19/2022  01:05 PM               817 PKG-INFO.TXT
10/19/2022  01:05 PM               146 profileLeo.py
10/19/2022  01:05 PM               193 pyproject.toml
10/19/2022  01:05 PM             1,701 README.md
10/19/2022  01:05 PM               254 requirements.txt
10/19/2022  01:05 PM               899 run_pytest_tests.py
10/19/2022  01:05 PM             1,027 run_travis_unit_tests.py
10/19/2022  01:05 PM                99 setup.cfg
10/19/2022  01:05 PM             5,918 setup.py
10/19/2022  01:05 PM    <DIR>          tools
              23 File(s)        320,887 bytes
               5 Dir(s)  914,009,030,656 bytes free

C:\code\leo-editor>git checkout devel
error: pathspec 'devel' did not match any file(s) known to git

C:\code\leo-editor>git checkout master
Already on 'master'
M       leo/doc/LeoDocs.leo
Your branch is up to date with 'origin/master'.

C:\code\leo-editor>






























Thomas Passin

unread,
Oct 19, 2022, 1:53:49 PM10/19/22
to leo-editor
I don't know the answer, but here's something to check.  Go to the .git directory for your leo-editor repo, and look at the file named config. It will tell you the branches that git knows about for your clone.  Mine starts like this:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[submodule]
    active = .
[remote "origin"]
    url = https://github.com/tbpassin/leo-editor.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[remote "upstream"]
    url = https://github.com/leo-editor/leo-editor.git
    fetch = +refs/heads/*:refs/remotes/upstream/*
[branch "6.2"]
    remote = origin
    merge = refs/heads/6.2
[branch "devel"]
    remote = upstream
    merge = refs/heads/devel


From the git clone manual page:

"After the clone, a plain git fetch without arguments will update all the remote-tracking branches, and a git pull without arguments will in addition merge the remote master branch into the current master branch, if any"

Maybe you just need to do git fetch or git pull.

On Wednesday, October 19, 2022 at 1:17:18 PM UTC-4 thequie...@gmail.com wrote:
I forked leo and then cloned my fork and then attempted to switch to the devel branch and it failed.

Is there not a contributing section in the official docs that shows one how to get started? 

cmd.exe shell transcript follows:
[snip]






























Edward K. Ream

unread,
Oct 19, 2022, 3:09:26 PM10/19/22
to leo-e...@googlegroups.com
On Wed, Oct 19, 2022 at 12:53 PM Thomas Passin <tbp1...@gmail.com> wrote:
I don't know the answer, but here's something to check.  Go to the .git directory for your leo-editor repo

No need to do this, because as you say:

Maybe you just need to do git fetch or git pull.

Edward
Reply all
Reply to author
Forward
0 new messages