Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with untracked causes CalledProcessError #4

Open
tucked opened this issue Aug 20, 2024 · 0 comments
Open

Conflict with untracked causes CalledProcessError #4

tucked opened this issue Aug 20, 2024 · 0 comments

Comments

@tucked
Copy link

tucked commented Aug 20, 2024

$ git switch backups
error: The following untracked working tree files would be overwritten by checkout:
        backup.sh
Please move or remove them before you switch branches.
Aborting
Traceback (most recent call last):
  File "/ifs/home/dtucker/.local/bin/git-rebase-branches", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/ifs/home/dtucker/.local/pipx/venvs/git-rebase-branches/lib/python3.12/site-packages/git_rebase_branches.py", line 152, in main
    run(["git", "switch", branch], check=True)
  File "/ifs/home/dtucker/.local/pipx/venvs/git-rebase-branches/lib/python3.12/site-packages/git_rebase_branches.py", line 183, in run
    return subprocess.run(command, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'switch', 'backups']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant