Code Monkey home page Code Monkey logo

gitstudy's People

Contributors

jinsu4755 avatar frohsch avatar

Watchers

 avatar

gitstudy's Issues

김민주 3주차 인증

reset --hard 정리

커밋을 되돌리고 싶을 때 사용한다. 파일 내용을 완전히 삭제시킨다.

reset --mixed 정리

reset의 default 모드다. add commit 하기 전으로 돌아간다. 대신 파일 변경 사항은 그대로 남아있다.

revert 정리하기

revert는 커밋을 삭제하는 것이 아닌 커밋을 추가해서 코드를 되돌린다.

다음 상황에 대한 명령어를 정리해봅시다

(상황1) 팀원이 잘못 reset --hard를 사용하여 작성한 내용을 잃어버렸다고 합니다.

git reflog로 로그를 확인하여 커밋 내용을 복구시킨다.

과제 인증 캡처

Screenshot 2023-11-06 at 3 19 32 PM

작성자: 김민주

@jinsu4755

김민주 2주차 인증

fast-forward merge

merge를 실행하는 브랜치에 커밋이 이동한다.

3-way-merge

commit merge가 발생한다.

자신만의 정리

깃을 사용해보면서 fast-forward merge와 3-way-merge는 처음 들어봤는데 새롭게 개념을 공부하게 됐다.

과제 인증 캡처

Screenshot 2023-11-02 at 1 53 58 AM

작성자: 김민주

@jinsu4755

김민주 4주차 인증

upstream 과 downstream 정리

fork를 했을 때 원래 레포지토리가 upstream이고, 포크한 레포지토리(내 게정에 있는 레포)가 downstream이다.

clone, fetch, pull 차이 정리

clone: 깃허브에 올라가 있는 파일을 클론해서 로컬에 복제한다.
fetch: remote repository의 내용을 불러온다.
pull: git fetch, git merge를 한번에 해준다.

자신만의 정리

fork
clone
git remote add upstream
git branch ~~

(선택)아래 절차에 따라 수행해주세요(이슈 작성 후)

  1. 해당 Repository를 fork 한다.
  2. fork repositroy에서 _pr_template.md 파일을 생성한다.
  3. 해당 파일에 자신만의 pr template 를 만들어 commit 한다.
  4. PinaryStudy/Git-Study main < fork repository 로 Pull Request를 만든다.
  5. 제작한 PR에 과제에 자신이 작성한 이슈를 참조로 남긴다.

작성자: 김민주

@jinsu4755

김민주 1주차 인증

Screenshot 2023-10-25 at 8 44 16 PM

깃의 3가지 영역

  1. Untracked area: Git이 관리하고 있지 않은 영역
  2. Tracked area: Git의 관리를 받을 수 있는 영역
  3. Staging area: Commit할 수 있는 영역

깃의 4가지 상태

  1. Untracked: 변동사항 추적 X
  2. Staged: staging area에 올라와있는 상태
  3. Unmodified: 현재 파일의 내용이 최신 커밋의 모습과 비교했을 때 전혀 바뀐 게 없는 상태
  4. Modified: 최신 커밋의 모습과 비교했을 때 조금이라도 바뀐 내용이 있는 상태

자신만의 정리

깃으로 버전 관리를 할 수 있다.

작성자: 김민주

@jinsu4755

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.