Git. Github(4)
-
1.github에 ‘프로젝트’ 올리는 법(순서)
1. >git init 2.코딩 3. >git add README.md >git add . (전체 파일 올리는 법) 4. >git commit -m "첫페이지 제작" 5. >git log (생성한 커밋 보기) --- #원격 저장소에 올리기(Github) 6. *Github 사이트 -New repository : 새 저장소 만들기 -Import repository : 저장소 가져오기 -New gist : 코드 조각 -New organization : 팀 프로젝트 7. >git remote add (이름) https://github.com/아이디/이름.git (예시)>git remote add origin https://github.com/brandeeman/20220104-github-new-start.g..
2022.03.23 -
master -> master (fetch first) 에러가 나왔다면?
>git push origin +master
2022.03.23 -
git commit을 하던 중 : please tell me who you are이라는 문장이 나왔다면?
1.git init 2.git config user.name "someone" 3.git config user.email "someone@someplace.com" 4.git add . 5.git commit -m "some init msg"
2022.03.23 -
git 정책 변화(branch 이름 변경하는 법 : master -> main)
>git branch –m master main
2022.03.23