git은 mac에서 키체인을 이용해서 인증을 관리한다.

키체인에서 github을 검색해보면 있다.

accessKey를 직접 수정해주는 방법도 있고

seceret을 운영안한다면 key만들기 귀찮으니

그냥 키체인을 지우고

fetch같은 명령을 실행하면

다시 인증절차 작업이 진행 된다.

'개발환경 설정 > Git' 카테고리의 다른 글

git] commit 이력이 contribution에 나오지 않는 경우  (0) 2020.02.27
Get Started With Git CLI  (0) 2019.05.19
{
  "name": "Current TS File",
  "type": "node",
  "request": "launch",
  "args": ["${relativeFile}"],
  "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
  "sourceMaps": true,
  "cwd": "${workspaceRoot}",
  "protocol": "inspector",
}```

'개발환경 설정' 카테고리의 다른 글

nvm 프로젝트별 설정  (0) 2022.05.15
degit - 간편하게 깃 저장소 복사하기  (0) 2020.03.02
vs-code] webpack alias link  (0) 2020.01.01
nginx] proxy_pass 적용 안되는 경우  (0) 2019.11.12
git hub 암호 캐싱하기  (0) 2019.01.27

git clone을 하면 git history까지 다 내려 받고 git remote가 연결되고 git branch가 잡힌다.

degit을 쓰면 단순히 repository 폴더만 가져 올 수 있다.

npm install -g degit```

```shell
degit user/repo```

사용법도 git보다 간단하다.

'개발환경 설정' 카테고리의 다른 글

nvm 프로젝트별 설정  (0) 2022.05.15
VSCODE] typescript debugging configuration  (0) 2020.03.23
vs-code] webpack alias link  (0) 2020.01.01
nginx] proxy_pass 적용 안되는 경우  (0) 2019.11.12
git hub 암호 캐싱하기  (0) 2019.01.27

git config user.name 과 user.email 설정이 잘못되었을 경우 contribution에 표시가 안된다.

1. bare로 clone

git clone --bare https://github.com/user/repo.git cd repo.git

2. branch filtering
your-old-email@example.com을 이전 이메일
Your Correct Name는 바뀐 name
your-correct-email@example.com는 바뀐 이메일

git filter-branch --env-filter '

OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"

if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

3. repository 덮어쓰기

git push --force --tags origin 'refs/heads/\*'

아래 사이트를 참고해서 수정 가능하다.
https://help.github.com/en/github/using-git/changing-author-info

'개발환경 설정 > Git' 카테고리의 다른 글

git terminal 계정변환시 재인증 안될 경우  (0) 2021.02.08
Get Started With Git CLI  (0) 2019.05.19

vue를 쓰면 @가 루트 링크를 디폴트로 잡고 있는데
vscode에서 링크를 타고 이동을 할 수가 없다.
jsconfg.json 파일에서 webpack 설정을 이용할 있다.

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"],
    }
  },
  "exclude": ["node_modules"]
}

baseUrl이 꼭 있어야 paths가 작동한다.
참조: [https://code.visualstudio.com/docs/languages/jsconfig#\_using-webpack-aliases]

'개발환경 설정' 카테고리의 다른 글

VSCODE] typescript debugging configuration  (0) 2020.03.23
degit - 간편하게 깃 저장소 복사하기  (0) 2020.03.02
nginx] proxy_pass 적용 안되는 경우  (0) 2019.11.12
git hub 암호 캐싱하기  (0) 2019.01.27
port 6000  (0) 2018.06.28

공홈에 나온 그대로 해도 안되는 경우

다른 설정이 덮어써서 그런 경우가 있다.

먼저 적은 설정이 우선이다.

include 같은 설이 proxy_pass보다 위에 있는 경우 include에 있는 location설정이 우선된다.

include를 뒤로 빼던지 include 파일안에 잘 설정하면 된다.

'개발환경 설정' 카테고리의 다른 글

degit - 간편하게 깃 저장소 복사하기  (0) 2020.03.02
vs-code] webpack alias link  (0) 2020.01.01
git hub 암호 캐싱하기  (0) 2019.01.27
port 6000  (0) 2018.06.28
mac iterm 편리한 커서 이동  (0) 2018.06.13

맥은 brew로 간단하게 설치한다.

brew nginx

 

기본 포트 설정이 8080이다.

 

/usr/local/etc/nginx/nginx.conf 파일에서

 

server {
        listen       8080;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

 

이부분을 수정하면 된다.

root html 은 --prefix=/usr/local/Cellar/nginx/1.17.3

적용을 받는다.

html은 /usr/local/var/www 의 링크다.

 

'개발환경 설정 > mac' 카테고리의 다른 글

폴더  (0) 2019.08.21
  • /usr/local/bin
    brew, npm, mysql 같은 사용자 설치 프로그램들 링크가 있다.

'개발환경 설정 > mac' 카테고리의 다른 글

install nginx  (0) 2019.08.21

You can make repository using git API

curl -u 'USER' https://api.github.com/user/repos] -d '{"name":"REPO"}'

# Remember replace USER with your username and REPO with your repository/application name! git remote add origin git@github.com:USER/REPO.git git push origin master

+ Recent posts