meersel / git-basics

A repo for collaboratively learning the basics of Git + Github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-basics

A repo for collaboratively learning the basics of Git + Github

what do you think about putting some high level topics here?
I'll take a stab but we can obviously do other thing here too.

Conceptual

  • why and how should we use git for personal code use?
  • how does this differ from collaborative use?

Practice

  • What are some good ideas about how to incorporate this tool into our routines?

Basics

  1. What's the difference between git fetch and git pull?
  2. git remote
  3. git checkout
  4. git add
  5. git push
  6. git pull
  7. git fetch
  8. git diff
  9. what else??

Articles

This one is about how to use fetch and how can we tell if our branch is up-to-date. Definitley ✴️ read this one!!!

Adventure time

Make your own fork! 🔥I used the browser then added a remote to my laptop with this🔥

git remote add origin_personal https://github.com/AndrewDHill/git-basics
git remote -v

Credentials

To store your password locally for a repo on your machine

git config credential.helper store

TO store your password globally on your machine

git config --global credential.helper store

It also helps to use the .gitconfig feature so that authoring information is readily available

git config --global user.name "Booly Boo"
git config --global user.email "BollyBoo@googly.goo"

About

A repo for collaboratively learning the basics of Git + Github