BASH

export NVM_DIR=~/.nvm

export PS1="➜ \w ✗ "

source $(brew --prefix nvm)/nvm.sh

function code {
    if [[ $# = 0 ]]
    then
        open -a "Visual Studio Code"
    else
        local argPath="$1"
        [[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
        open -a "Visual Studio Code" "$argPath"
    fi
}

ZSH

zsh.zshrc:
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}


Oh My ZSH

robbyrussell.zsh-theme:
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT+=' %{$fg[cyan]%}%~%{$reset_color%} %{$fg_bold[yellow]%}✗ $(git_prompt_info)'

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

 

행복한 고수되셔요...

 

woojja ))*

\\\\\\\\\\\\\\\\\\\\\\\\\

반응형

git clone [git path] [target foldername]

git clone ....git woojja_src

 

git remote branch 로 확인

origin  삭제 : git remote remove origin 

 

rm -rf ...

 

 

 

git repository 생성

origin branch 생성 : git remote add origin [new git path]

git remote branch 로 확인

 

git push : git push origin master

 

 

git status

git add -A

git commit -m "commit message"

git push origin master

 

 

ssh Key 만드는 방법.

 

ssh-keygen -t rsa -C "git 계정"

Key 가 생성되며 

아래 명령어 중 한 명령어를 실행하게 되면 Key 가 복사되며

$ cat /Users/~~~/id_rsa.pub

$ cat ~/.ssh/id_rsa.pub

 

git 계정의  setting menu 에서 SSH and GPG Keys 로 이동.

Add New Key Button 을 눌러 나온 화면에 복사한 Key 를 Paste 한 후

git push  를 진행한다.

 

 

행복한 고수되셔요.

woojja ))*

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

반응형

'Tools > Github' 카테고리의 다른 글

[Github] Git 명령어  (0) 2021.08.24

현재 사용하고 있는 Extensions.

 

Babel  ES6/ES7

C#

Debugger for Chrome

ESLint

GraphQL

HTML CSS Support

indent-rainbow

Markdown All in One

Path  Intellisense

Rainbow Brakets

Reactjs code snippet

REST Client

vscode-icon

vscode-styled-components

 

 

행복한 고수되셔요.

 

woojja ))*

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

 

반응형

'Tools > VS Code' 카테고리의 다른 글

[VS Code] Emmet 설정  (0) 2020.01.16

+ Recent posts