본문 바로가기
반응형

git7

[git] git push 되돌리기 - reset git commit을 잘못하여 되돌려야 할때가 있다. 이럴 경우 git reset 명령어를 사용해서 commit을 되돌릴 수 있다. commit 되돌리기 먼저 git log 를 통해 commit 내용을 살펴보자. $ git log commit fe954047297922fdc380b974ebe83a401504ed6c (HEAD -> main, origin/main) Author: test Date: Thu Nov 25 19:17:39 2021 +0900 third commit commit 388ac6c6d77cad44065b51f1f5e2cd461660ebc8 Author: test Date: Thu Nov 25 19:16:24 2021 +0900 second commit commit 070310e37ee.. 2021. 11. 25.
[Git] git push error - 토큰 인증 (Please use a personal access token instead) git repository 를 생성하고 local 에서 reomte 로 push를 하려고 할때 아래와 같이 authentication 에러가 발생할 때가 있다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/kgmhk/tes.. 2021. 11. 25.
[git] Please make sure you have the correct access rights and the repository exists. 기존에 clone 해두었던 repository 에서 최근 소스를 받기 위해 git pull을 했을 때 아래와 같은 에러가 발생 $ git pull remote: remote: ======================================================================== remote: remote: The project you were looking for could not be found or you don't have permission to view it. remote: remote: ======================================================================== remote: fatal: Could not read.. 2021. 11. 17.
Set a new git repository 1. git init $ git init 2. git add $ git add . 3. git commit $ git commit -m 'first commit' 4. Create a new git repository Go to http://github.com and Create a new git repository 5. Add remote & Push $ git remote add origin https://github.com/username/repo $ git push -u origin master 6. Check it out on your repository. 2019. 8. 1.
반응형