✨
Saltberry
GithubLinkedIn
  • 개요 Overview
  • 📝HTML/CSS
    • 구조 HTML
    • 스타일 CSS
      • z-index
  • 📦개발 Development
    • 개발 Implementation
    • 단어 Glosarry
    • 깃 Git
    • 해시 Hash
    • 노드 패키지 매니저 Node Package Manager
    • 브라우저 랜더링 Browser Rendering Process
    • 교차 출처 리소스 공유 CORS
    • 인터프리터 Interpreter
    • Object-oriented programming(OOP) 객체지향 프로그래밍
  • 💡CS 50
    • Computational Thinking
  • ✨자바스크립트 Javascript
    • 자바스크립트란 What is JavaScript
    • 표현식과 문 Expression Statement
    • 변수 Variable
    • 함수 Function
    • 참과 거짓 값 Truth Falsy
    • 배열 Array
    • Import Export
    • 스택과 큐 Stack Queue
    • 문서객체모델 Document Object Model
      • 개요 Overview
      • 도큐먼트 Document
      • HTMLCollection
      • getMethod
      • NodeList
      • childNodes, children
      • Event
      • live, static
      • Element
      • DOM Token
      • 속성 attribute
      • implementation
      • 노드 Node
      • HTMLElement
    • 브라우저 저장소 Cookie Web Storage
  • 🎁리액트 React
    • 리액트 톧아보기 Overview
    • Intro
      • 상태의 불변성 State Immutability
      • Props and State
      • Hooks
    • Concepts
  • 🚦타입스크립트 Typescript
    • Page 1
  • 🗃️리덕스 Redux
    • 왜 리덕스를 사용할까 Why Redux
    • 플럭스 Flux
  • 📬넥스트 Nextjs
    • Pages
  • ✅면접 Interview
    • Index
    • Implement experiences
    • Best practice for query parameter and fetch
  • 🚀TECH
    • Lists
    • Zustand
  • 🧬Algorithm
    • Types of algorithms
    • 이진수 변환 Binary Number
    • 후위 연산자 Postfix expression
    • 선택 정렬 Selection Sort
    • Find longest substring without repeating characters
    • 올바른 괄호 Valid Parentheses
  • 📔Mathematics
    • 다항식 Polynomial
  • 🗂️Database
    • 데이터베이스 Database
  • 📝Class
    • 자료구조 Data Structure
      • 배열 Array
    • C++ 프로그래밍
      • C++ 기초
    • 소프트웨어 공학 Software engineering
      • 소프트웨어 개요 Software overview
      • 소프트웨어 프로세스 Software process
    • 자바 Java
      • 자바와 객체지향 프로그래밍 Java and OOP(Object-oriented programming)
  • Java
    • 자바가 뭐지?
  • CA EI
    • CA EI
Powered by GitBook
On this page
  • git init
  • git add
  • git commit
  • stage area
  • git log
  • git diff
  • git reset
  • git revert
  1. 개발 Development

깃 Git

git init

Create an empty Git repository or reinitialize an existing one

새로운 깃 레파지토리를 만들거나, 기존 것을 초기화

git add

Add file contents to the index

처음/새로 트래킹 할 파일을 추가, 커밋하고자 하는 파일만 선택

git add하면 stage area에 올라감(커밋 대기 상태)

$ git add <추가할 파일>
$ git add . //현재 디렉터리의 모든 파일 추가

git commit

Record changes to the repository

의미있는 변화인 버전 또는 작업이 완결된 상태의 버전을 만드는 것

git commit을 하면 stage area에 있는 파일들이 새로운 버전

$ git status //현 파일 상태 확인
$ git add . //현재 디렉터리의 모든 변경 사항을 추가
$ git commit
$ git commit -m "initial commit" //메시지 추가
$ git commit -am "commit" //자동 추가

stage area

커밋 대기 상태

git log

$ git log //커밋 기록 확인
$ git log -p //각 커밋 별 소스별 차이

git diff

$ git diff //변경된 파일들과 이전 커밋의 차이
$ git diff <커밋 고유 번호 1>..<커밋 고유 번호 2> 

git reset

$ git reset <커밋 고유 번호> --hard //돌아가려는 커밋

git revert

Last updated 2 years ago

📦
File Life Cycle
1)