gituhb [push, clone, pull]

dalCoding·2023년 3월 26일
0

push

Create a new repository
새 파일 생성
git intit
git add .
(READEME.md)(.gitignore)파일 추가
git config --global user.name name -초기설정
git config --global user.email email-초기설정
git commit -m "first commit"
git branch -M main
git remote add origin https://깃주소
git push origin main

git branch 설정

git branch -M develop
git add .
git push origin develop
git checkout main

clone

git clone https://github.com/ljhmd00/test.git
git config --global user.name name
git config --global user.email email
git init
git add .
git commit -m "수정내용"
git push origin main

  • rm -rf .git
    :git repository 지우기

pull

git pull origin branch
git push origin branch

0개의 댓글