The git add command is not reflected in my GitHub repository

Viewed 37

I'm a beginner at git cmd & English.

I modify the original sentence because of a lack of my explanation

I wanna update remote repository. I type the below command but my remote repository is not updated.

C:\Users\ss119\desktop\TODO_OOP1>git add -A



C:\Users\ss119\desktop\TODO_OOP1>git push origin master
Everything up-to-date

git status 
//On branch origin nothing to commit, working tree clean

This is output of git status . I am creating todo-list and I add some functionality. So I don't know that this kind of message appear.

Though I google this cause, I don't know.

Thank you for your help!

2 Answers

You have to call git commit before git push

git commit -m "<commit message>"

You aren't committing any files, let's have a look at the git workflow regarding adding , committing and then pushing to a remote repo.

git add adds your amended files to a staging area to be committed.

git commit commits the added files and creates a new emendation of the code locally.

git push shares all your changes to the remote repo.

Right now you are adding your files to the staging area and instantly trying to push them to your repo without having actually changed the code locally.

so before git push run:

git commit -m "message"

Related