Maving a commit forward (git)

Ok, I’ve done exactly what you said.


I’m just wondering if I can rename the backup file to U02_backupBT to fit better into my file organization, or will that mess something up on git’s side?


So just to clarify, now I can go like this, correct?

git push master feature/TurretRotation --force

That should be fine.

No. The syntax is git push [remote] [branch] so

git push origin master --force

Note: if you’re currently already on master (not in your screenshot) and that’s set as upstream (e.g. you did git push -u origin master at some point) Then that would be exactly the same as

git push -f

Ok! I think it worked! I’m just wondering why does SourceTree say I still need to push 1 file and need to pull in 5?

I have no idea, I don’t use it. Maybe restart it?

And if you want to push that to your remote (assuming you’re on your feature branch)

git push -u origin feature/TurretRotation

Further pushes from that branch can just be

git push

Yeah that fixed it.


The result is exactly what I wanted! Thank you so much for your help! Sorry if I was asking for more precision, but I didn’t want to mess something up again.
Thanks again!
-Enrico

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.