🌐 Public

Newbie Guide for Git & GitHub

By Karen Catlin

Introduction

For anyone who needs to learn to use Git and GitHub via the command line.

Karen Catlin — I have a computer science degree from Brown University, and I'm passionate about helping women ...

Added by Karen Catlin: “For $6 (USD), you can take a crash course on using the command line. Or, read the Command Line Crash Course book *for free* here: http://cli.learncodethehardway.org/book/ If you're familiar with the command line, jump ahead to the next chapter in this playlist.

1 Inculcate.Me - Command Line Crash Course

Added by Karen Catlin: “Learn about version control systems, from the book "Pro Git" by Scott Chacon.

4 About Version Control

This chapter will be about getting started with Git. We will begin by explaining some background on version control tools, then move on to how to get Git running on your system and finally how to get it set up to start working with. At the end of this chapter you should understand why Git is around, why you should

Added by Karen Catlin: “Read this LifeHacker article to learn how to create a GitHub account (where you store your code projects) and to get started with Git.

6 How the Heck Do I Use GitHub?

Dear Lifehacker, I've learned to code and want to start using GitHub to manage my projects. Despite the introductory lesson they provide, I still don't understand how it works at all. Can you help me? If you've been looking to learn how to code, we can help you get started. Here are 4.5 lessons ... Read more Read more Sincerely,

Added by Karen Catlin: “Git, in a nutshell, from the book "Pro Git" by Scott Chacon

7 Git Basics

The major difference between Git and any other VCS (Subversion and friends included) is the way Git thinks about its data. Conceptually, most other systems store information as a list of file-based changes. These systems (CVS, Subversion, Perforce, Bazaar, and so on) think of the information they keep as a set of files and the changes made to each file

Added by Karen Catlin: “If you didn't donwload and install Git as part of the playlist chapter from LifeHacker, learn how to do so. From the book "Pro Git" by Scott Chacon.

8 Installing Git

If you want to install Git on Linux via a binary installer, you can generally do so through the basic package-management tool that comes with your distribution. If you're on Fedora for example, you can use yum: $ sudo yum install gitIf you're on a Debian-based distribution like Ubuntu, try apt-get: $ sudo apt-get install gitFor more options, there are

Added by Karen Catlin: “Simple steps to customize your Git environment, from the book "Pro Git" by Scott Chacon

9 First-Time Git Setup

First-Time Git SetupNow that you have Git on your system, you'll want to do a few things to customize your Git environment. You should have to do these things only once on any given computer; they'll stick around between upgrades. You can also change them at any time by running through the commands again. Git comes with a tool called

Added by Karen Catlin: “Now it's time to edit one of the files in your directory and commit the changes to your repository.

11 Recording Changes to the Repository

You have a bona fide Git repository and a checkout or working copy of the files for that project. You need to make some changes and commit snapshots of those changes into your repository each time the project reaches a state you want to record. Remember that each file in your working directory can be in one of two states:

Added by Karen Catlin: “Learn to use the Git Log command to view changes to your repo.

12 Viewing the Commit History

Viewing the Commit HistoryAfter you have created several commits, or if you have cloned a repository with an existing commit history, you'll probably want to look back to see what has happened. The most basic and powerful tool to do this is the git log command. These examples use a very simple project called "simplegit". To get the project, run

Added by Karen Catlin: “If you committed a change and changed your mind, here's how to undo it.

13 Undoing Things

Undoing ThingsAt any stage, you may want to undo something. Here, we'll review a few basic tools for undoing changes that you've made. Be careful, because you can't always undo some of these undos. This is one of the few areas in Git where you may lose some work if you do it wrong. One of the common undos takes

Added by Karen Catlin: “Learn how to use the Git Tag command to tag release points.

14 Tagging

Listing the available tags in Git is straightforward. Just type git tag: This command lists the tags in alphabetical order; the order in which they appear has no real importance. You can also search for tags with a particular pattern. The Git source repo, for instance, contains more than 500 tags. If you're only interested in looking at the 1.8.5

Added by Karen Catlin: “Become a more efficient Git user with these tips and tricks.

15 Tips and Tricks

Tips and TricksBefore we finish this chapter on basic Git, a few little tips and tricks may make your Git experience a bit simpler, easier, or more familiar. Many people use Git without using any of these tips, and we won't refer to them or assume you've used them later in the book; but you should probably know how to

Added by Karen Catlin: “There are many more Git commands you can learn. Refer to this list of Git commands, and click on the section numbers to learn more about how to use each one.

16 Index of Git Commands

amitsd

Freshman

  • 0 Playlists
  • 0 Followers

Meliza

Past the Point of No Return

  • 0 Playlists
  • 0 Followers

kuldeep Singh

Freshman

  • 0 Playlists
  • 0 Followers

Karen Catlin

Advocate for women in tech. Leadership coach, speaker, co-author of Present! A Techie's Guide to ...

  • 0 Playlists
  • 0 Followers

bharath g s

|learner.designer.engineer.tech enthusiast.aspiring data scientist|

  • 1 Playlists
  • 0 Followers

Nahid Kassam (heronova149)

Freshman

  • 0 Playlists
  • 0 Followers

Vladimir Poluyan

Freshman

  • 2 Playlists
  • 0 Followers

Peastwood

work all day with your feet on the floor harder harder harder for a little ...

  • 0 Playlists
  • 0 Followers

schoenflies

Freshman

  • 2 Playlists
  • 0 Followers

John Wilton Williams

I am a UX Designer with IBM Design, where I work in the Internet of ...

  • 0 Playlists
  • 0 Followers

stranger26

Freshman

  • 0 Playlists
  • 0 Followers

Lauren Stephens

I still have not decided what I want to be when I grow up. And ...

  • 0 Playlists
  • 0 Followers

مصطفى يحيي

Freshman

  • 0 Playlists
  • 0 Followers

Leeward Bound

Freshman

  • 0 Playlists
  • 0 Followers

Mohamed Ibrahim

freelance writer

  • 2 Playlists
  • 2 Followers

glomikuz

Freshman

  • 0 Playlists
  • 0 Followers

Khal Ixto

Computer Science student at UFPR

  • 0 Playlists
  • 0 Followers

ktrianta

Freshman

  • 0 Playlists
  • 0 Followers

ajmoncrieff

Freshman

  • 0 Playlists
  • 0 Followers

bhavyaaha

Freshman

  • 0 Playlists
  • 0 Followers
Load more

Delete your comment

Are you sure you want to delete your comment?