저번 포스팅에 간단하게 remote에러를 해결하는 방법을 올렸다.
이번 포스팅에선 git을 간단하게 올리는 실습을 해보고 review를 포스팅해본다.
S C:\Users\User\Desktop\play\11> git init
warning: in the working copy of 'play.js', LF will be replaced by CRLF the next time Git touches it
->git상태를 초기화 해준다
The most similar command is
config
PS C:\Users\User\Desktop\play\11> git remote add origin https://github.com/yejikim9629/test.git
PS C:\Users\User\Desktop\play\11> git commit -m "start"
Author identity unknown
-> 문법오류
- ** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
fatal: unable to auto-detect email address (got 'User@LAPTOP-JJPVHET9.(none)')
PS C:\Users\User\Desktop\play\11> git log
fatal: your current branch 'master' does not have any commits yet
PS C:\Users\User\Desktop\play\11> git config --global user.email "you@example.com"
-> 초기 정보를 설정해준다
PS C:\Users\User\Desktop\play\11> git status
On branch master
->master branch에 아무것도 없는상태
nothing to commit, working tree clean
->git의 있는 파일을 모두 추가해준다
PS C:\Users\User\Desktop\play\11> git add .
PS C:\Users\User\Desktop\play\11> git status
nothing to commit, working tree clean
PS C:\Users\User\Desktop\play\11> git push remote --all ->오류
fatal: 'remote' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
-> remote 에 모든정보를 넣어준다
git레포지터리 주소값을써주면 된다.
PS C:\Users\User\Desktop\play\11> git push origin --all
info: please complete authentication in your browser...
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 659 bytes | 659.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
To [https://github.com/yejikim9629/test.git](https://github.com/yejikim9629/test.git)
PS C:\Users\User\Desktop\play\11>