먼저

$ git config -l

로 현재 사용하고 있는 계정 확인

 

 

$ cd ~/.ssh
$ ls -al

 

 

ssh-keygen -t rsa -C "회사아이디@회사메일.com" -f "id_rsa_회사아이디"
ssh-keygen -t rsa -C "개인아이디@개인메일.com" -f "id_rsa_개인아이디"

 

 

$ pbcopy < ~/.ssh/id_rsa_회사아이디.pub
$ code ~/.ssh/id_rsa_회사아이디.pub
$ pbcopy < ~/.ssh/id_rsa_개인아이디.pub
$ code ~/.ssh/id_rsa_개인아이디.pub

 


ssh-key 등록

 

 

$ cd ~/.ssh/config
$ vi config
$ ssh -T git@회사깃주소-회사아이디
$ ssh -T git@깃헙주소-개인아이디

 

 

This key is not known by any other names

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes  

Hi @@@! You've successfully authenticated, but GitHub does not provide shell access.

 

 

 

확인 시

git config user.name 

git config user.email

'이것저것' 카테고리의 다른 글

작업 중 폴더 bitbucket에 git 하기  (0) 2020.02.12
$npm -v -bash: npm: command not found  (0) 2020.02.12
터미널에서 code. 으로 vscode열기  (0) 2020.01.07

git을 사용하며 올리는 저장소는

github나 bitbucket이 있지만..

회사 프로젝트는 유로로 돈을 내고 private관리를 하기에..

bitbucket에 올리려고 했는데

모든게 다 처음인 내게 vue init webpack-simple #프로젝트 생성 후

무엇이 있는 폴더 자체를 repository에 올리는건 어려운 숙제였다..

 

그리하야 지우고 깔고.. 반복과 삽의 연속하다

결국 설치완료

헷갈린 부분...

create-repository 하면 너무 쉽게 간단히 git을 썻으나...

흠.. 뭐가 있는걸 올리기는??

생각하면 간단한데... 이러면서 스킬 하나씩 늘어가는걸로(?)

 

 

뷰 웹팩 설치 후에 요 아이들에

 

먼저 git init 

그리고 git add .

git commit -m "first commit"(메세지는 아무거나 상관 없음)

한 후 git remote add origin https://~.git

git push -u origin --all

git push -u origin --tags

 

빗버킷 새로 고침하니.. 결국 작 remote되었음.. 짝짝짝

 

더보기

userui-iMac:project-name user$ git commit -m "first commit"
[master (root-commit) 21e6213] first commit
 11 files changed, 8631 insertions(+)
 create mode 100644 .babelrc
 create mode 100644 .editorconfig
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 index.html
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 src/App.vue
 create mode 100644 src/assets/logo.png
 create mode 100644 src/main.js
 create mode 100644 webpack.config.js
userui-iMac:project-name user$ git remote add origin https://블라블라.git
fatal: remote origin already exists.
userui-iMac:project-name user$ git push -u origin --all
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 76.17 KiB | 6.92 MiB/s, done.
Total 15 (delta 0), reused 0 (delta 0)
To https://bitbucket.org/호호호호.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
userui-iMac:project-name user$ git push -u origin --tags
Everything up-to-date
userui-iMac:project-name user$ code.
-bash: code.: command not found
userui-iMac:project-name user$ code .
userui-iMac:project-name user$ npm run dev

vue.js작업을 하려고.. vue-cli 실행하며

Hello-vue실행 후 테스트 한 두

실 프로젝트 폴더를 만들다가..

갑자기 오류가 나기시작..

 

npm.. node.. 구글 이래저래 뒤지며 삽질하다 1시간 만에 해결...

 

node -v 치면 노드 버젼이 나오는데

npm -v 시 -bash: npm: command not found만 계속 나옴... 

 

여러가지 해봄..

npm cache clean..

ls -las...

 

결론은 

brew uninstall npm

brew install npm

npm -v하니.. 되네..

 

후아.. 뭔가.. 삽푸는 기분이지만.. 글로벌 설치하면 오류가 많은가.. 

눙물나는 한시간이었다.

 

 

그리고 순탄히

 

npm install -g vue-cli

vue init webpack-simple #프로젝트이름

cd #프로젝트이름

npm install

npm run dev

 

실행 후 브라우저에 localhost:8080으로

요 화면 나옴.. 흑.. 

조으다

+ Recent posts