how to keep a private LAN git repo of a remote open source project
I am modifying some open source code I cloned from github and want to keep these modifications private on my LAN git repo.
I may in the future want to submit these mods to the project for inclusion but that is not my objective. In one case I have personal requirements and in the other I am looking at errors that may be caused by local conditions.
What is the way we do this?
My naive approach would be to hack the url property of the .git/config file and then later hack it back to a branch of the original repo. But I can see this might be a very bad idea.
Is it? What is the right way to do it?