Skip to content

cannot git push a cloned repository #100

@lukeed

Description

@lukeed

When cloning a git repository (into anywhere), I am unable to git push any changes back to remote. Doing so results in this error:

Updates were rejected because the remote contains work that you do[m
[33mhint: not have locally. This is usually caused by another repository pushing[m
[33mhint: to the same ref. You may want to first integrate the remote changes[m
[33mhint: (e.g., 'git pull ...') before pushing again.[m
[33mhint: See the 'Note about fast-forwards' in 'git push --help' for details.[m

Error: failed to exec in podman container: exit status 1

While this looks like the general "pull before push" message, it's because git push is actually trying to push the /persisted/.git repository (for CSB backups) to the remote repository.

I can confirm this because:

  1. Running git pull before push & it's always up to date
  2. I can git push -f origin and the /persisted/.git repo appears in my source with the automated CSB commits

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions