TOOL/Github
git clone(복제) 후 다시 git push(올리기)
oodada
2020. 7. 31. 11:43
1. git 설치하기
- 많은 선택지가 나오는데 그냥 무조건 next를 누르세요~
Git - Downloads
Downloads Mac OS X 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
git-scm.com
2. 내 컴퓨터에 새폴더를 만들고 Git 저장소 받아오기(clone)
생성한 저장소 인터페이스 오른쪽에 있는 Clone or download 버튼을 클릭 한 후, https 주소를 클립보드에 저장합니다.
명령어 도구를 열어 원격저장소를 복사할 위치로 이동합니다.
# 데스크톱으로 이동할 경우 $ cd ~/Deskop # 도큐멘트로 이동할 경우 $ cd ~/Document
git clone 명령을 사용하면 원격저장소의 데이터를 로컬 컴퓨터로 다운로드 받습니다.
git clone https://github.com/<계정이름>/<저장소이름>.git
git clone https://github.com/eehd80/WDP-6.git
현재 폴더에 clone 하고 싶을 경우
=> git 원격저장소 주소 뒤에 한칸 띄고0 .(점)을 붙인다.
git clone https://github.com/eehd80/WDP-6.git .
3. 다시 push(올리기)
git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"
git init
git add .
git commit -m "어디어디 수정"
git remote add origin https://github.com/본인아이디/레포지토리이름.git
git push -u origin master