I have commited two files, let us say a.json
and b.json
. I have these files locally and on the remote repository.
I want to basically make some changes to b.json
but just ignore pushing it the the remote repository, but accidentally commited them.
I have tried git rm --cached b.json
and then amended the commit. But pushing this removes b.json
from my remote repository.
I would want the b.json
on the remote to remain the same just would want to not push my changes. How would I achieve this?