TIL no.27

손병진·2020년 8월 27일
0

wecode

목록 보기
10/27

git

초기 세팅 폴더

git init

상태 확인

git status

클론시

git clone repository_url

계정 미지정시

git config user.name
git config user.email

branch

git branch branch_name
git checkout branch_name

branch 생성 + 이동

git checkout 0b branch_name

작업 후

git add .
git commit -m 'message'

add + commit 동시에

git commit -am 'message'

push

git push origin branch_name

PR요청

최초 한번만 가능하다
두번째 부터는 자동

  • pull, merge, delete, master
  • What is U in git push?
    (Upstream)
    The -u option automatically sets that upstream for you, linking your repo to a central one. That way, in the future, Git "knows" where you want to push to and where you want to pull from, so you can use git pull or git push without arguments.
profile
https://castie.tistory.com

0개의 댓글