9. README.md
remotelocal HEAD
git pushgit pushgit push
index.html index.html
a5c6870 da39a3e
index.html
push sends all of your
commits to GitHUB
README.md
index.html
README.md
index.html
10. Do some work...
git add .git add .
git commit -m “stuff”git commit -m “stuff”
git pushgit push
The usual
workflow is to edit,
add, commit and
then push when
you ready...
11. git add .git add .
git commit -m “stuff”git commit -m “stuff”
git pushgit push
...that way you can
always go back to
a previous commit.Do some work...
12. git can merge two commits
even if they were made by different people
on different computers
in the same file
git mergegit merge
13. git can maintain parallel
branchesso you can experiment with changes and leave
the original unchanged
git branchgit branch