I think i misunderstood your question earlier. I believe you are trying to manage your github repository from Obsidian, just like we do in any other IDE such as VS Code and all, right ?
This is very easy to achieve using the Obsidian Git plugin. You will find more information on the same post and also in the documentation of that plugin.