나만의 깃 명령어

하동구·2021년 6월 24일
0

'내용' 항목은 변경가능한 내용이며 ''을 생략하고 사용할 것

깃 생성
git init

모든파일 스테이징
git add .

깃 커밋
git commit -m 'comment'

깃 푸시
git push 'origin/master'

원격 깃 조회
git remote -v

원격 깃 연결
git remote add origin 'https://github.com/ACACIANh/Anything.git'

원격 깃 해제
git remote remove origin

원격 깃 사항 가져오기
git fetch --all

로컬을 원격 깃으로 강제 초기화
git reset --hard origin/master

생각날때마다 추가할 것

참고 ProGit
https://git-scm.com/book/ko/v2/

branch 관련
https://ifuwanna.tistory.com/284

profile
한 줄 소개

0개의 댓글