본문 바로가기

반응형

Git

(6)
STS github 연동하기(github 처음 commit) 1. github 가입 https://github.com/ GitHub: Let’s build from here GitHub is where over 94 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2. git 설치 https://git-scm.com/ Git git-scm.com 3. github > Create a new repository - 왼쪽 상단에 있는 New 버튼으로 새로운 repository 생성 -..
GitLab project/repository STS에 가져오기 1. STS > Git Repositories > Clone Git Repository - 우측 상단 perspective에 Git Repository 가 없을 경우 -> Window > Show View > Git Repositories - Show View 에 Git Repositories가 없을 경우 -> Other... 에서 Git Repositories 검색 2. GitLab project/repository 접속 3. Clone > Clone with HTTPS Copy 4. Protocol https 선택 후 URL 에 복사한 URL 붙여넣기 - URL 붙여넣으면 Host, Repository path 자동으로 채워집니다. - 계정 정보 입력 후 Next 4-1. 구글 또는 github 계정..
VSCode GitLab project/repository clone VSCode에 GitLab repository를 clone하려고 합니다. SSH Key 방식도 있으나, 번거로운 작업들이 있어 비밀번호 로그인 방식으로 진행합니다. 1. GitLab에 로그인 2. clone 하려는 project 클릭 3. Clone > Visual Studio Code(HTTPS) 4. Visual Studio Code 열기 5. Open 6. Clone 받을 폴더 지정 7. GitLab 로그인 계정 입력 (구글 또는 github 계정일 경우 해당 계정 입력) 8. 비밀번호 입력 8-1. 구글 또는 github 계정으로 로그인하신 분은 비밀번호가 존재하지 않습니다. 비밀번호 초기화 작업을 진행해줍니다. 8-2. GitLab에서 우측 상단의 프로필 > Edit profile 8-3. Pa..
git commit 이름 확인 및 변경하기 1. Git Bash 실행 2. 현재 지정된 이름 확인 cat ~/.gitconfig 3. 이름 변경 vi ~/.gitconfig i 변경할 이름 입력 esc 키 클릭 :wq - vi 로 편집하러 들어가게 되면 위와 같은 상태가 됩니다. - 수정하기 위해 i 클릭 (수정 상태가 되면 아래 INSERT가 표기됩니다.) - delete 키로 지운 후 수정 - esc 키 클릭 후 :wq 입력으로 저장 (:w! 명령어는 저장하지 않고 나가기) 4. 변경사항 확인 vi ~/.gitconfig
Visual Studio Code에서 github 소스 가져오기 1. Visual Studio Code 실행 (비 워크스페이스 열기 : Ctrl + Shift + N) 2. 키보드 F1 > git clone 검색 후 선택 3. git repository URL입력한다. 3-1. git 로그인 > 받으려는 레파지토리에서 Code 클릭 후 URL 복하해서 붙여넣으시면 됩니다. 4. 저장할 local 위치 선택 5. Open 클릭 - Open : 현재 열려있는 VSCode에서 Open - Open in New Window : 새로운 창으로 VSCode Open - Add to Workspace : 현재 열려있는 VSCode에 Workspace 추가 6. 소스를 가져온걸 볼 수 있다.
Visual Studio Code에 github 연동 1. github 가입 https://github.com/ GitHub: Let’s build from here GitHub is where over 94 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2. git 설치 https://git-scm.com/ Git git-scm.com 3. Create a new repository - 왼쪽 상단에 있는 New 버튼으로 새로운 레파지토리 생성 - 레파지토리명 입력 후 생..

반응형