how to push a .txt file to github repository code example Example: how to push a file to github git remote add origin 'your_url_name' git push -u origin master