Git commands
I've introduced a few Git commands while discussing how Gitworks, but haven't actually explained properly how to use them, so let's do a very brief introduction to the basic usage of Git.
The first command you'll need when starting a new project is git init. This initializes a new Gitrepository, and you'll notice that it creates a .git folder so that you can start your project (this is hidden by default on Unix-based and Windows operating systems).
The other situation you might find yourself in is working on an existing project and needing to create a local repository. This can be done with the git clone command. You specify a URL with a protocol (such as https:// or git://) and Gitfetches all of the information for that repository ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access