728x90
반응형
Git 등록방법
1. 깃에 등록할 파일에 git init
2. git add . , git commit -ma 실행
3. git remote add origin git@github.com:[계정명]/[저장소명].git
4. git remote show
5. git push --force --set-upstream origin master
ssh 등록방법
1. ssh 키 확인 ls -al ~/.ssh
2. 키 생성 ssh-keygen -t rsa -b 4096 -C gsjung06@naver.com
3. Ssh-agent 실행 여부 확인 eval "$(ssh-agent -s)"
4. 키 등록 ssh-add ~/.ssh/id_rsa
728x90
반응형
'DevOps > Git' 카테고리의 다른 글
Git | Github Actions | Auto Labeling with Pull Request (0) | 2024.04.30 |
---|---|
Git | Github Actions CI/CD 파이프라인 구축 | self_host and container registry (0) | 2024.03.13 |
Git | Github Actions CI/CD 파이프라인 구축 (0) | 2023.09.19 |
Git | 깃허브 commit 되돌리기( reset, revert ) (0) | 2022.11.11 |
Git | .gitignore 기본 세팅 (0) | 2022.08.02 |