git> 순서(통합,이중모듈 오류> 초기화시켜)
git remote -v
현재 주소확인
git branch
브랜치 목록확인
(git. 파일없애)
git init
새로 생성
git remote add origin https://github.com/hjw1191/OTT.git
git remote remove origin (주소제거)
git remote add origin https://github.com/hjw1191/OTT/tree/main/front
(하위주소)
git branch -M main
새로운 레퍼지토리
브랜치 만들기
git add .
git commit -m "첫"
git branch
브랜치 목록확인
git push -u origin main
푸시.
git push -f origin main
강제 덮여쓰기
git config --global user.name "황종완"
git config --global --get user.name(확인)
git config --global user.email "hjw1191@gmail.com"
git config --global --get user.email(주소확인)
-----------------------------------------------------------------------------------------
특정폴더만 업데이트
git config --global user.name "황종완"
git config --global user.email "hjw1191@gmail.com"
git fetch origin
git fetch origin git checkout -b main origin/main
git add front/
(상위 폴더에서)
git commit -m "Updated front folder with new changes"
git push origin main