Git
git-scm.com
GitHub: Let’s build from here
GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...
github.com
git init
.git 하위 디렉토리 생성
git add README.md
프로젝트 소개글 생
git status
작업 디렉토리와 스테이징 영역 상태 확인
git add .
현재 디렉토리의 모든 변경 내용을 스테이징 영역
$ git add <파일/디렉토리 경로>
$ git add -A
$ git add -p
git branch -M main
https://git-scm.com/book/en/v2/Git-Branching-Branch-Management
git remote -v
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
원격 저장소 연결 확인
git remote set-url origin https://github.com/user/변경할repo.git
git remote set-url origin {변경할 원격 저장소 주소}
git push -u origin main
origin 주소에 branch(main) 업로
-u 옵션 초기값 저장
.gitignore 파일 무시
https://docs.github.com/ko/get-started/getting-started-with-git/ignoring-files
Ignoring files(파일 무시) - GitHub Docs
GitHub에 체크 인하지 않으려는 파일을 무시하도록 Git을 구성할 수 있습니다.
docs.github.com
출처
'JS' 카테고리의 다른 글
리액트 풀코스 무료(2024) / React Full Course for free ⚛️ (2024) (0) | 2024.02.01 |
---|---|
Next.js 14 (0) | 2023.12.11 |