GitHub 101: 명령줄을 통해 새 리포지토리에 파일 업로드
2622 단어 versioncontrolgitgithub
본격적으로 명령줄을 통해 파일을 추가해 보겠습니다.


다음 명령을 실행하여 리포지토리를 초기화합니다.
git init

git remote add origin <url>
3단계부터 라인을 실행하고 실행합니다.

git add .
또는 다음을 실행하여 특정 파일만 추가할 수 있습니다.
git add <filename>
전자는 변경 영역에 파일을 추가하고 후자는 index.html 파일만 추가합니다.
git status

git commit -m"<Desc. of your commit>"
git push origin <branch name>


_________________________
댓글에 제안 사항을 자유롭게 남겨주시고 도움이 되셨다면 저에게 좋아요를 주시고 혜택을 받을 수 있는 사람과 공유해 주세요.
질문이 있거나 대화를 나누고 싶다면 제 인스타그램에서 저에게 연락하세요! 반대쪽에서 뵙겠습니다.
Reference
이 문제에 관하여(GitHub 101: 명령줄을 통해 새 리포지토리에 파일 업로드), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/bmonish/github-101-uploading-files-to-a-new-repository-via-command-line-ph1텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)