Command Line git

git is an excellent version control system that was designed by Linus Torvalds for managing the Linux kernel source tree. Our git repositories will be hosted on GitHub.

Command Line

Here’s the basics for pushing your changes to GitHub from the command line.

# Clones the repository to the current directory
git clone https://github.com/username/your-repo

cd ./your-repo
# Here's where the magic happens -- you write/modify some code!
(make some changes to your file(s))

# See what's changed
git status

# Let's check in our change
git add filename

# Let's see what changes are ready to be committed
git status

# Great! Now, let's commit the changes with a nice commit message
git commit -m "Modified function z() to do a, b, c."

# Finally, push the changes back up to GitHub:
git push