-
soft reset은 저장소로 커밋한게 취소됨
&
soft reset은 저장소로 커밋한게 취소됨
$ git diff
hardreset은 모두 취소됨
default로 진행되는게 mixed reset임.
git reset + 되돌아갈 커밋
git revert +취소할 커밋
GitHub
클론은 .git까지 복제되므로, git init을 할필요가 없다.
foo브랜치를 master브랜치로 병합하면
clone
cd 폴더명(복사시킬폴더)
git clone ssh주소입력
ssh주소는 복사하고 싶은 code(초록색) - local- ssh 코드 복사.
push 깃 레포지토리에서 중간 ssh 클릭하고 그 아래
…or push an existing repository from the command line
밑에 명령어 3개 입력 (각각 따로)
예)
git remote add origin git@github.com:sangwoorhie/testrepo.git
git branch -M main
git push -u origin mainfoo브랜치를 master브랜치로 병합하면
clone
cd 폴더명(복사시킬폴더)
git clone ssh주소입력
ssh주소는 복사하고 싶은 code(초록색) - local- ssh 코드 복사.
push 깃 레포지토리에서 중간 ssh 클릭하고 그 아래
…or push an existing repository from the command line
밑에 명령어 3개 입력 (각각 따로)
예)
git remote add origin git@github.com:sangwoorhie/testrepo.git
git branch -M main
git push -u origin mainfoo브랜치를 master브랜치로 병합하면
clone
cd 폴더명(복사시킬폴더)
git clone ssh주소입력
ssh주소는 복사하고 싶은 code(초록색) - local- ssh 코드 복사.
push 깃 레포지토리에서 중간 ssh 클릭하고 그 아래
…or push an existing repository from the command line
밑에 명령어 3개 입력 (각각 따로)
예)
git remote add origin git@github.com:sangwoorhie/testrepo.git
git branch -M main
git push -u origin main'Git > Git' 카테고리의 다른 글
Git 협업 Tip (0) 2023.07.21 Git 명령어 모음 (0) 2023.06.14 Repository의 개념, remote, origin (0) 2023.06.09 Git 특강 1회 (0) 2023.05.15