Giter Site home page Giter Site logo

git-practice's Introduction

Git 101

Must-know skill for CS peeps


Agenda

  1. Setup
  1. Introduction to Version Control System
  2. Why we need to use GitHub
  3. How to use Git & GitHub
  4. Create
    • create repository on GitHub (README.md - markdown syntax)
    • clone repo to local (remote vs local)
  5. Edit
    • stage files -.gitignore
    • commit to local repo
    • see changelog & snapshots
    • push
  6. Collaborate
    • branch (off-topic: create blog with GitHub)

Setup


Setup

Let's dive in head first.

  1. Create github.com account
  2. Install GitHub Desktop
  • Advanced users may prefer to use command lines
  • At the end of the presentation, I'll tell you potentially better apps.
  • Linux users can use GitKraken

While you do that,

#VCS: version control system


Version Control System

Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later... in reality you can do this with nearly any type of file on a computer. If you are a graphic or web designer and want to keep every version of an image or layout (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use... Using a VCS also generally means that if you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead.

  1. revert files back to a previous state
  2. revert the entire project back to a previous state
  3. compare changes over time
  4. see who last modified something that might be causing a problem
  5. who introduced an issue and when, and more.

Learn More

Advanced Git apps: SourceTree, GitKraken GitHub intro page GitHub flow tutorial Markdown Cheatsheet Create a blog/website with GitHub Learn git with command lines

######소스저장소란,

######버젼관리시스템(VCS, Version Control System)의 이점

  1. 변경된 내용을 공유 가능 - 어떤 생각으로, 어떤 과정 등
  2. 타인이 작업한 내용 쉽게 병합 - 협업 가능
  3. 과거 상태로 복구 가능
  4. 여러 분기(Branch)를 통해 병렬 관리 가능

######Examples of VCS

  1. Subversion (SVN) - Git과 함께 가장 대표적으로 사용되고 Git 이전에는 대부분 SVN을 사용함. Git과 다르게 원격저장소만 있음.
  2. Mercurial - Git과 비슷한 철학; 가볍고 쉬운 사용을 위해 탄생함.
  3. Git by Linus Torvalds (also made Linux)
    1. 복잡한 Branch 관리 적합
    2. 로컬과 원격 저장소의 분리
    3. 다양한 서비스 업체 like GitHub
    4. 다양한 보조 툴

#####Git ######Git Flow

  1. Working Directory - where we actually work on the file (local computer?)
  2. Stage Area - Stage fixes. we prepare today's work for Git. We check which files to commit and leave comments.
  3. .git directory (Repository) - Commit. like a Photoshop snapshot.
  4. Remote Repository

######Repository Git leaves same files in Local as well as Remote Repository. Local works even where user has limited internet access. So if there's no need to share a project, there's no need to sync with Remote Repository. Remote Repository is the repository in the traditional sense. It is where change is logged. Meeting place of all local repositories.

######Why Stage Area? So that you can choose which files to commit. For example, when the client doesn't want the new function but wants the security patch. Or when there are files that are not related to the product, such as IDE-dependent files or OS-dependent files. You can manage these with .gitignore file.

#####SourceTree Another Git program. You can Push (copy from your local repo to remote repo) or Pull (copy from remote repo to local repo). If there are unwanted files, you can use .gitignore: open it in a text editor and write the filenames. GitFlow - Branching and Merging You can branch or merge to cooperate effectively.

I am continuously developing on the master branch. This is some new information.

sausage has slices it is one big chunk.

this is a new feature on our hotdog called a bun. Buns are usually made of sandwich shaped bread. But they can also be made of other things, if you want to become creative. For example, KFC has a menu called Double Down MAX, which has chicken breasts as the buns.

inside the bun, usually there is a sausage or patty. Generally, a sausage is long and round like a dick; a patty is round and flat like a pancake.

git-practice's People

Contributors

simonseo avatar mslee300 avatar wblee800 avatar ahndohun avatar jun0zo avatar dos-m0nk3y avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.