when I try to update a html file, after that using git bash I have pushed a file and commit it, but the result is up-to-date. actually it is not updating
Admin@baluhari MINGW64 ~/OneDrive/Desktop/working (master)
$ git add .
Admin@baluhari MINGW64 ~/OneDrive/Desktop/working (master)
$ git commit -m "my changes"
On branch master
Your branch is up to date with ‘origin/master’.
nothing to commit, working tree clean
the thing is want to show a updation in github
2
Answers
You show that you commited to the branch but no log for the push
You need to run "git push -u origin branchname" actually push those commits from your local machine to the repository
Be sure that You have git in your repository.
Write cat "filename" and it will show you what is in the file. By this simple instruction u can check which file git has and search the place where git takes files from. Then it`s obvious move file there or checkout git to other file.
After it
git add .
git status (u will see what happened)
git commit -m "describe what u changed"
git push
check of course do you have rights to push something into the branch
I hope u made
git clone "link to your repostiory"
and other first simple commands that appear after u create git repository on git hub
If, it won
t work check too does your editor has VCS(Version Control System). It
s easy to use. There are some buttons to connect, commit, clone, push etc