Reset remote to specific commit in github (can't reset local and force push because of a large file)

67 Views Asked by At

I want to reset a Github repo to a specific commit. The simplest way to do this is to reset local first and force push it to the remote. But there are large files in the project. So it's uploading all files again when force pushing. Is there any way to reset the remote by not force pushing local?

1

There are 1 best solutions below

0
On BEST ANSWER

If the commit already exists on the remote, git will not upload it again.