git init

git add "file"

git commit -m "message"

           "add"               "commit"

작업폴더->staging area->repository(저장소)

 

git status : staging 했던 파일들을 표기해서 알려줌

git log --all --oneline 작업했던 내역들을 알려줌

 

git diff  : 최근 commit vs 현재파일 차이점 보여줌. 

git difftool 파일 비교

git difftool 커밋아이디

git difftool 커밋아이디1 커밋아이디2 (커밋아이디는 git log --all --oneline에서 나오는 노란색 숫자기호)

--> extension 설치해서 진행하면 더 좋은 것들이 많이 있음. 예를 들어서 git graph

 

git branch 브랜치명 : 브랜치(복사본) 생성 

git switch 브랜치명 : 브랜치로 이동 (checkout)

git merge 브랜치명 : 기준이 되는 브랜치로 이동 후 병합 (conflict 인 경우에는 코드 수정 후 다시 커밋)

 

원격 저장소 (GitHub, GitLab, Bitbucket)

git remote add origin http://github~~~  : origin 이라는 원격 저장소를 추가

git clone http://~~ : 원격 저장소를 복제하여 저장소를 생성 

 

git push origin main : main브랜치의 변경사항을 origin 원격 저장소로 푸시

git pull origin main : main브랜치의 최신 내용을 origin원격 저장소에서 가져와 로컬 저장소와 병합(로컬작업을 최신상태로 유지가 목적)

-> git fetch: 원격 저장소의 변경사항을 가져옵니다

-> git merge : 가져온 변경 사항을 로컬 브랜치에 병합합니다

-> 두 과정이 결합된 형태가 git pull 입니다 

#pull과 pull request는 뜻이 다르더라....

 

Fork and Pull Request 워크플로우

1.Fork : 협업자가 원본저장소를 자신의 GitHub 계정으로 포크합니다. 

2.Clone: 포크한 저장소를 로컬로 클론합니다

3.Branch: 새로운 기능이나 버그 수정을 위해서 브랜치를 생성합니다.

4.Commit: 변경사항을 커밋합니다.

5.Push: 변경사항을 포크된 원격 저장소로 푸시합니다. 

6.Pull Request: 원본 저장소로 변경 사항을 병합해 달라는 요청을 보냅니다. (수동병합, 관리자 승인 필요)

 

취소하는 과정

 

git reset  : staging area에 올라간 파일들을 untracked file 상태로 바꿀수 있다

git commit --amend -m "메세지" 커밋했던 메시지를 수정할 수있다.

 

 

install on Mac

 

1. Homebrew 설치

2. 터미널에서 설치 명령어 입력

$brew install git 

git 공식홈페이지

 

https://github.com/Homebrew/brew/releases/tag/4.4.23

 

Release 4.4.23 · Homebrew/brew

What's Changed docs: Fix broken RubyDoc URL fragments by @samford in #19361 refactor: move nil check inside demodulize by @dduugg in #19356 Enable strict typing in Formula by @dduugg in #19323 dia...

github.com

install "Homebrew-4.43.pkg"

Homebrew 설치오류

 

 

터미널에서 "xcode-select --install" 입력

 

다시 homebrew 설치

 

 

터미널에서 git 설치

$brew install git

 

 

The printing press is delivered only partly assembled, but it comes with detailed instructions on how to finish putting the different parts together.

(a) accumulated 축적된, 누적된

(b) assembled 조립된, 모인

(c) furnished 가구가 비치된

(d) associated 관련된

 

printing press 인쇄기

partly 부분적으로

come with ~ 딸려있는

detailed 상세한, 자세한

put something together ~를 조립하다, 합치다 

 

The new office building has a large conference room that can seat fifty persons as well as space for a cafeteria in the basement.

(a) by means of ~의 도움으로

(b) with respect to ~에 대하여

(c) in regard to ~과 관련하여 

(d) as well as ~에 더하여, 게다가 

 

Most of the clerical staff working for Madsen & Sons were laid off after the company was sold to Redding Associates early this year.

(a) work

(b) worked

(c) working

(d) works

 

clerical 사무직의, 사무원의

lay off 해고하다

 

I have finalized it, but you will need to sign it before we can proceed with your civil case.

civil case 민사 소송 사건

 

By the way, were you able to put together all the documents I asked for?

put together 준비하다, 만들다

 

The ones pertaining to the case.

pertaining to ~와 관련된

 

I have them all except for the income tax return.

income tax return 소득세 신고서 

 

He waill attend a court hearing the next morning.

court hearing 법원 심리

 

She will update Mr.Mills on the progress of her lawsuit.

lawsuit 소송

 

Trees are growing by a waterfront area.

waterfront 물가

 

Will the spring break sale start this weekend or next Monday?

spring break 봄 방학*휴가

 

 

 

'영어 > TOEIC' 카테고리의 다른 글

Finding a taxi is at your fingertips!  (0) 2025.03.12
Would you happen to have a room with a balcony?  (0) 2025.03.11
She is flattening out a piece of dough.  (0) 2025.03.05
They are walking under an archway.  (0) 2025.03.04
viewership  (0) 2025.03.03

+ Recent posts