linux
git 설치
javackr
2025. 2. 3. 15:20
깃허브
1. 설치
sudo apt install git
sudo apt install git-core
2. 버전 확인
git --version
3. 개인정보등록
sudo git config --global user.name "본인 계정 이름"
sudo git config --global user.email "본인 계정 이메일"
sudo git config --global color.ui "auto"
4. Github 만들기
주소 : https://github.com/
아이디 : fdjskldf@gmail.com
패스워드 : ********
토큰 : ghp_GJwp8ofshfhfhfzhNkU2FFsrwerewj8DKtertSCJ2m3ITU
저장소 : https://github.com/fdjskldf/test2.git
5. Github 내용 받아오기
해당 /root폴더로 이동한다.
git init => 초기화
git remote add origin "https://github.com/fdjskldf/test2.git" => 저장소 등록
git pull origin main => 내용을 받아올 수 있다
6. 이제 원하는 작업을 git add -> git commit -> git push 를 통해 진행 할 수 있다.