I have a branch of my main branch named 218.
I am the only one using this thread.
I make my changes 3 weeks ago to make a transfer request, but it was rejected because I needed to make changes.
Now I made these changes, and I wanted to commit the latest changes to my branch.
I tried to commit, and he told me that I needed to drain and pull. So I did, and he messed up all my files and got rid of my changes that I made in the last 3 weeks.
I disabled this: git reset --hard HEAD~1
And now, when it is in my repo on my computer, all the files are how they should be. But when I execute git status, my changes are not displayed and it says:
Your branch is behind 'origin/feature/218' by 2 commits, and can be fast forwarded. nothing to commit, working directory clean.
I want to make a branch what I have in my repo on my local computer, since it is standing, and not pull anything, but overwrite everything with what I have locally.
How to do it?
git git-commit version-control git-merge
RSM
source share