Github files not showing

New question:

I add the file to my repo (drag it to my repo folder) and then to git bash "cd" for my repo and "git init", "git add file name", git commit -m 'compile files'. When I git status, he says

$ git status #on branch master #your branch is ahead of origin master by 2 commits # working directory clean. Nothing to commit. 

But they are not showing up in my repo when I refresh the page on my github site. Should I click them on the site?

+4
source share
2 answers

Do I need to click them on the site?

Yes. First, Commits are sent to your local repository. You need git push origin master so that commits are on GitHub.

+7
source

You need to push the changes to your remote on github.

You made changes to your local repository, but that does not automatically push them to your remote. Try the following:

 git push origin master 
+2
source

Source: https://habr.com/ru/post/1394231/


All Articles