목록git (3)
unscope
Git clonegit clone [저장소 주소] Git pullgit pull [pull 해 올 브랜치 이름] Git revertgit revert //commit log 확인은 'git log --oneline'git revert .. //a ~ c 까지 되돌림git revert --continue //revert 진행git revert --abort //대기중인 revert 취소 프로젝트 init// 일단 원격 저장소에 올릴 파일을 commit 완료했다는 것을 가정으로...git remote -v // 연결된 remote가 있는 지 확인.git remote remove origin // 연결된 remote 있을 경우 연결 삭제git remote add origin 원격_저장소_주소 // 연결git..
매번 찾고 매번 까먹어서 다시 찾는 Git 연동, 차라리 블로그에 박제시켜 버리자. 준비물 Git https://git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp git-scm.com 원격 저장소 링크 (ex_ Github, Bitbu..
방금 파일 다 날려먹었던 사람이 나야 나... 하지만 이미 이전에 모든 파일들을 정상적으로 커밋 했고... 이전 커밋으로 돌아가는 방법을 알고 있었기 때문에 침착하게 원상복귀 시켰습니다. 먼저 아래 명령어 같은 걸 사용해서 커밋 ID를 찾아냅니다. git reflog 그 다음 아래 명령어를 입력하면 이전에 커밋했던 파일들이 고스란히 돌아옵니다. git reset --hard [commit_id] # ex) git reset --hard 2dfjw45f 그리고 필요하다면 원격 저장소에 커밋한 사람이 아무도 없는 지 체크한 다음... 원격 저장소를 덮어쓰기 해 주면 끗. git push -f --set-upstream origin master