분류 전체보기
-
git branch merge하기카테고리 없음 2023. 2. 19. 13:40
calcuatlor.py yunaaa branch에서 # 기본계산기 def add(a,b): return a + b def subtract(a,b): return a - b def multiply(a,b): return a * b def divide_premium(a,b): return a/b yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (yunaaa) $ start . yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (yunaaa) $ git add . yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (yunaaa) $ git commit -m 'ch..
-
브랜치 merge하기카테고리 없음 2023. 2. 19. 13:20
# 브랜치! - 하나의 코드 관리 흐름 yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git history 75494b3b9c8516938bbf65d1fdf5ee8348cef63f (HEAD -> master, tag: Version_2, origin/master) Add multiply function 23453a2..
-
브랜치 시작하기Git 2023. 2. 19. 12:41
# 브랜치! - 하나의 코드 관리 흐름 yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git history 75494b3b9c8516938bbf65d1fdf5ee8348cef63f (HEAD -> master, tag: Version_2, origin/master) Add multiply function 23453a2..
-
git resetGit 2023. 2. 19. 11:13
HEAD - 어떤 커밋 하나를 가리킴 - HEAD가 가리키는 커밋에 따라 working directory구성 git reset - 과거 커밋으로 아예 돌아가고 싶을 때 - HEAD가 과거의 커밋을 가리키게 할 수 있따 - working directory의 내용도 과거 커밋을 가리키게 할 수 있다 yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git history 75494b3b9c8516938bbf65d1fdf5ee8348cef63f (HEAD -> master, origin/master) Add multiply function 23453a29860fb3bce2a87749717bfd6f1dfc0100 Add the info in RE..
-
커밋메시지 다루기 (m옵션 없이 메세지 남기기, 최신 커밋 수정하기, as로 별칭 만들기, 두 커밋 간의 차이보기)Git 2023. 2. 19. 10:12
calculator.py 수정하기 calculator.py # 기본계산기 def add(a,b): return a + b def subtract(a,b): return a - b def multiply(a,b): return a + b git add . git commit i를 눌러서 편집모드로 간다 저장은 ESC + :wq! git log에서 확인해보기 commit aaf39bfb5bccf75a27daaee533070234bab08501 (HEAD -> master) Author: yunajoe Date: Sat Feb 18 20:02:32 2023 +0900 Add one function calculator.py supports 3 functions now : commit 23453a29860fb3b..
-
커밋 히스토리Git 2023. 2. 19. 10:01
커밋 히스토리 보기 git log yunajoe@DESKTOP-ULNOHTM MINGW64 ~/Desktop/Git_Practice (master) $ git log commit 23453a29860fb3bce2a87749717bfd6f1dfc0100 (HEAD -> master, origin/master) Author: yunajoe Date: Sat Feb 18 18:19:35 2023 +0900 Add the info in README.md commit 74b3b85cae59f4dc2daaee15110fc7724a1812a1 Author: yunajoe Date: Sat Feb 18 17:19:29 2023 +0900 readme수정 commit b69451e5813c4f433746acbf77a92..
-
The requested URL returned error: 403Error Collections 2023. 2. 18. 18:01
원인 깃헙에 코드를 푸쉬할 때 해당 주소에 대한 권한이 없기 때문에 403 리턴을 하는 것 $ git push -u origin master remote: Permission to yunajoe/Git_Practice.git denied to [로그인된계정아이디]. fatal: unable to access 'https://github.com/[push하려고하는 repo아이디]/[push하려고 하는 repo]/': The requested URL returned error: 403 해결 시도1 1. 인증하기 git remote set-url origin "https://github-username@github.com/github-username/github-repository-name.git" 를 입력 ..