I created a project to test the git repository in tfs online I created the repository and committed the code in the master branch Butwhenlookingatthetfsrepository,thebranchisempty.
Push is missing.
In Git, commits are done locally. To send your changes to the remote repository you need to make a push of changes.
In the right side panel, in the combo box (top) select Sync and click Push Changes .