hi i am new to git. i pushed a commit yesterday for the first time and now i want to update the git with a new commit (beacuse the files were modified). it seems like it worked (see below) but when i refresh github.com i see that this has not been updaated. What am i missing?
help would be appreciated thanks
first commit: my first commit
second commit: my changes
Yaz@DESKTOP-AKKTJUT MINGW32 ~ (master)
$ cd "react projects"
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects (master)
$ cd "streams"
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((be53009...)|REBASE 1/1)
$ git status
rebase in progress; onto (NULL)
You are currently rebasing.
(all conflicts fixed: run "git rebase --continue")
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: api/db.json
modified: client/public/index.html
modified: client/src/actions/index.js
modified: client/src/components/App.js
modified: client/src/components/streams/StreamDelete.js
modified: client/src/components/streams/StreamList.js
modified: client/src/components/streams/StreamShow.js
Untracked files:
(use "git add <file>..." to include in what will be committed)
client/src/components/Modal.js
no changes added to commit (use "git add" and/or "git commit -a")
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((be53009...)|REBASE 1/1)
$ git add .
warning: LF will be replaced by CRLF in api/db.json.
The file will have its original line endings in your working directory
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((be53009...)|REBASE 1/1)
$ git status
rebase in progress; onto (NULL)
You are currently rebasing.
(all conflicts fixed: run "git rebase --continue")
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: api/db.json
modified: client/public/index.html
modified: client/src/actions/index.js
modified: client/src/components/App.js
new file: client/src/components/Modal.js
modified: client/src/components/streams/StreamDelete.js
modified: client/src/components/streams/StreamList.js
modified: client/src/components/streams/StreamShow.js
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((be53009...)|REBASE 1/1)
$ git commit -m "my changes"
[detached HEAD 0a497c6] my changes
8 files changed, 131 insertions(+), 28 deletions(-)
create mode 100644 client/src/components/Modal.js
rewrite client/src/components/streams/StreamDelete.js (74%)
rewrite client/src/components/streams/StreamShow.js (72%)
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$ git status
rebase in progress; onto (NULL)
You are currently rebasing.
(all conflicts fixed: run "git rebase --continue")
nothing to commit, working tree clean
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$ git push origin master
Everything up-to-date
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$ git push -u origin master
Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'origin'.
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$ git push
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git push origin HEAD:<name-of-remote-branch>
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$ ^C
Yaz@DESKTOP-AKKTJUT MINGW32 ~/react projects/streams ((0a497c6...)|REBASE 1/1)
$