After a long period of inactivity, I decided to play around with the Terminal, Git and Jekyll. My past self didn’t anticipate this and forgot to leave instructions on some of the basic, basic commands. 2024 me is leaving these here for 2029 me. -Nov. 25, 2024

In a previous entry, I wrote about my use of Git and how I preferred to use a Git client (Tower) as opposed to the command line. In that entry, I listed some basic Git commands. These were the basic commands that I needed to push content to the repository for this site.

Since then, I’ve been transitioning to the command line for more and more of my commits. I recently picked up the so-far, excellent book by David Demaree, Git for Humans from A Book Apart. In this book, I’ve started to add some commands to my toolbox. I have decided to list the new commands that I am using, here, as much as a resource for myself, as anything else. Personally, I find that I run a few commands frequently but then forget some of the less used commands. This will be my go-to reference.

Since we’re using the command line, these commands may not necessarily be specific to Git, but can be used with Git. If you are looking for tutorials on Git, check out the excellent Git tutorials from Atlassian.

Git Commands

ls

Lists the contents of the current location

mkdir

Creates a new directory or folder within the directory that you are already in.

cd ..

Moves you up one directory within your file system.

cd Directory Name

Moves you into that directory.

Git Commands for Publishing

git status

Displays changes to git directory.

git add .

Adds / stages all of the changed files in the current directory.

git commmit -m

Commits the changes and the -m allows us to add a message to indicate what the change is.

git push

Pushes the changes.

Markdown

While I’m at it, here is a link to a Markown cheatsheet since I forgot those commands as well.

Markdown Cheatsheet

Have a question? Found this useful? Let me know at .