How to use git sync functionality in angular project (not for perticular os)

I have one angular project and I need to sync some of my json code on github. I need to create git repository for perticular login user. And after that need to add that json code in file and push that file on github