gitstudy's People
gitstudy's Issues
김민주 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 ~~
(선택)아래 절차에 따라 수행해주세요(이슈 작성 후)
- 해당 Repository를 fork 한다.
- fork repositroy에서 _pr_template.md 파일을 생성한다.
- 해당 파일에 자신만의 pr template 를 만들어 commit 한다.
- PinaryStudy/Git-Study main < fork repository 로 Pull Request를 만든다.
- 제작한 PR에 과제에 자신이 작성한 이슈를 참조로 남긴다.
작성자: 김민주
김민주 2주차 인증
김민주 3주차 인증
reset --hard 정리
커밋을 되돌리고 싶을 때 사용한다. 파일 내용을 완전히 삭제시킨다.
reset --mixed 정리
reset의 default 모드다. add commit 하기 전으로 돌아간다. 대신 파일 변경 사항은 그대로 남아있다.
revert 정리하기
revert는 커밋을 삭제하는 것이 아닌 커밋을 추가해서 코드를 되돌린다.
다음 상황에 대한 명령어를 정리해봅시다
(상황1) 팀원이 잘못 reset --hard를 사용하여 작성한 내용을 잃어버렸다고 합니다.
git reflog로 로그를 확인하여 커밋 내용을 복구시킨다.
과제 인증 캡처
작성자: 김민주
김민주 1주차 인증
깃의 3가지 영역
- Untracked area: Git이 관리하고 있지 않은 영역
- Tracked area: Git의 관리를 받을 수 있는 영역
- Staging area: Commit할 수 있는 영역
깃의 4가지 상태
- Untracked: 변동사항 추적 X
- Staged: staging area에 올라와있는 상태
- Unmodified: 현재 파일의 내용이 최신 커밋의 모습과 비교했을 때 전혀 바뀐 게 없는 상태
- Modified: 최신 커밋의 모습과 비교했을 때 조금이라도 바뀐 내용이 있는 상태
자신만의 정리
깃으로 버전 관리를 할 수 있다.
작성자: 김민주
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.