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

Gitfiend seems to be having issues with branch commit reversion #213

Open
josephlevin opened this issue Feb 3, 2025 · 1 comment
Open

Comments

@josephlevin
Copy link

I am new to git, so please bear with me.

I made an initial remote repository with a readme.md file in it.

I cloned the repo locally, then made changes locally to readme.md

Then I committed and pushed the changes to the remote repo.

That worked, so I made changes to the remote repo readme.md, then pulled them.

I pulled the changes to my local repo, and that worked.

When I try to revert to an earlier commit, my local file gets updated to its state in that earlier commit. This happened after I reverted the current repo to the commit I selected.

But when I push to the remote repo, I get this error:

git: 'credential-manager-core' is not a git command. See 'git --help'.
To https://github.com/josephlevin/cs50w.git
! [rejected] dev -> dev (non-fast-forward)
error: failed to push some refs to 'https://github.com/josephlevin/cs50w.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

I have to use:
git push origin dev --force

in the MINGGW64 terminal in order to push to the remote repository.

Is there any way to force a push from within Git Fiend?

Thanks much!

@GitFiend
Copy link
Owner

GitFiend commented Feb 4, 2025

There's no way currently to force push in GitFiend. I plan to add it as I've had a lot of requests.

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

2 participants