- Link to what I wrote: here. Use this as a reference and a learning tool. - Robert
Say you made changes to hello_world.html
and you want to push it to github. Just run the following:
git pull
git add hellow_world.html
git commit -m 'I just changed hello_world!'
git push -u origin master
Or, to just add all the modified files:
git pull
git add -A
git commit -m 'I just changed hello_world!'
git push -u origin master
You don't actually need it, but if you do it on the first push, then on your subsequent pushes, you only need to type git push
instead of git push origin master
master
is the master branch. You can have multiple branches.