Github command line tutorial for mac pdf

broken image
broken image

$ cd /Users/computer-name/Documents/website In Practice: # change directory to codebase

broken image

After running git init, adding and committing files/directories is possible.

broken image

This is the first step in creating a repository. This command turns a directory into an empty Git repository. If you’re getting started with Git also check out our fantastic guide on the topic. Knowing what actions the client is performing in the background is beneficial to understanding how Git works. Git has many great clients that allow you to use Git without the command line. Our hope is that this makes Git easier to use on a daily basis. To help with that, we’ve put together a list of common Git commands, what each one means, and how to use them. Working with Git on the command line can be daunting.