…or create a new repository on the command line
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin 깃헙주소
git push -u origin main
…or create a new repository on the command line
git remote add origin 깃헙주소
git branch -M main
git push -u origin main
'git' 카테고리의 다른 글
[git] GitLab에서 GitHub로 커밋내용,히스토리까지 복사 (0) | 2024.08.07 |
---|---|
Git) SourceTree_remote: Invalid username or password. (0) | 2023.11.16 |
[git] 깃 작성자 이메일 이름 변경 (git rebase author 변경) (0) | 2021.03.26 |
[git] 현재 사용자 확인 (0) | 2021.03.23 |
[git] gitlab ---> github 커밋내용까지 이전 (0) | 2021.03.08 |