-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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!