Let’s make some changes to our local Git repository and push them to GitHub.
<!DOCTYPE html> <html> <head> <title>Hello World!</title> <link rel=”stylesheet” href=”bluestyle.css”> </head> <body> <h1>Hello world!</h1> <div><img src=”img_hello_world.jpg” alt=”Hello World from Space” style=”width:100%;max-width:640px”></div> <p>This is the first file in my new Git Repo.</p> <p>This line is here to show how merging works.</p> <div><img src=”img_hello_git.jpg” alt=”Hello Git” style=”width:100%;max-width:640px”></div> </body> </html> |
Commit the changes.
[user@localhost] $ |
git commit -a -m “Updated index.html. Resized image” |
And check the status.
[user@localhost] $ |
git status |
Now push our changes to the remote origin.
[user@localhost] $ |
git push origin |
Go to GitHub and verify that the repository has a new commit.
Next, we’ll begin working with branches on GitHub.