* local


$ git branch -m old_name new_name




* remote 


$ git push origin -u new_name


$ git push origin --delete old_name



remote의 default branch는 local에서 삭제가 안된다.

github 사이트에 로그인 후 프로젝트의 settings에서 

default branch를 새로운 branch로 바꿔준 후에 삭제해야한다.


'프로그래밍 > ' 카테고리의 다른 글

vim 잘 쓰기  (0) 2021.01.19
ssh로 github 사용하기  (0) 2021.01.19
git의 여러가지 취소  (0) 2021.01.18
toolchain 도구  (0) 2021.01.15
vscode에서 platformio 라이브러리 추가  (0) 2021.01.02

:edit $MYVIMRC

:source $MYVIMRC

 

:so %

 

 

 

* 플러그인 매니저

 

- VundleVimVundle.vim

- tpope/vim-pathogen

- junegunvim-plug

 

중에서 나는 vundle을 사용할 생각이다.

 

 

$ git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim

 

$ vi ~/.vimrc 파일에

 

set rtp+=~/.vim/bundle/Vundle.vim

 

call vundle#begin()

Plugin 'VundleVim/Vundle.vim'

 

call vundle#end()

 

추가

 

call vundle#begin() / call vundle#end() 사이에

 

원하는 플러그인 나열한다.

 

 

Plugin '플러그인주소' or '플러그인이름'

 

 

:PluginInstall 이라고 치면 

.vimrc 플러그인 목록의 내용을 자동으로 설치해준다.

 

 

 

 

* 주요 플러그인 

 

 

NERDTree

https://github.com/scrooloose/nerdtree.

 

The-NERD-Commenter

 

AutoComplPop 

https://bitbucket.org/ns9tks/vim-autocomplpop/

 

neocomplcache

http://github.com/Shougo/neocomplcache/tree/master

 

snipMate

 

Tlist

https://github.com/yegappan/taglist

 

srcexpl

Source Explorer

https://github.com/wesleyche/SrcExpl

 

 

https://medium.com/@huntie/10-essential-vim-plugins-for-2018-39957190b7a9

 

 

 

 

 

.vimrc
다운로드

 

jellybeans.vim
다운로드

 

~/.vim/colors

 

 

https://github.com/johngrib/simple_vim_guide/blob/master/md/vimrc.md

 

 

 

 

* 함수 폴딩

 

https://darkwind.tistory.com/34

 

 

 

 

* autocmd 이벤트

 

https://soooprmx.com/archives/3469

 

 

 

* 언어별로 다른 tab 적용

 

https://shareyou.tistory.com/251

 

 

 

 

* 창 분할 

 

https://superuser.com/questions/608292/select-vimenter-autocmds-to-run-based-on-args

 

 

 

 

'프로그래밍 > ' 카테고리의 다른 글

git, branch 이름 바꾸기  (0) 2021.01.20
ssh로 github 사용하기  (0) 2021.01.19
git의 여러가지 취소  (0) 2021.01.18
toolchain 도구  (0) 2021.01.15
vscode에서 platformio 라이브러리 추가  (0) 2021.01.02

https://www.lainyzine.com/ko/article/creating-ssh-key-for-github/

 

GitHub 접속 용 SSH 키 만드는 방법

GitHub의 저장소를 사용할 때 HTTPS과 SSH 프로토콜을 사용할 수 있습니다. SSH 프로토콜은 공개키 방식으로 안전하게 정보를 교환할 수 있습니다. 이번 글에서는 공개키를 만드는 방법부터, GitHub에

www.lainyzine.com

 

* https 방식

 

 

git clone https://github.com/계정/프로젝트.git

 

 

* public key 생성

 

# ssh-keygen -t rsa -b 4096 -C "namacin@gmail.com"

 

 

* ssh 방식

 

git clone git@github.com:계정/프로젝트.git

 

 

물론 github에 로컬의 rsa 키를 등록해야한다.  (~/.ssh/id_rsa.pub 파일)

없으면 ssh-keygen으로 생성.

 

키를 생성할 때 passphase에 빈칸을 주면 패스워드 조자 묻지 않는다.

 

 

* github 등록

 

https://github.com/settings/keys

[New SSH key]

Key type은 Authentication Key 로.. [Add SSH key]

local에서 ~/.ssh/config 파일에

Host github.com
IdentityFile ~/.ssh/id_rsa
User git

 

추가

 

 

* 접속 테스트

ssh -T git@github.com


Hi userid You've successfully ...


git clone git@github.com:userid/project.git

 

 

 

* 기존에 진행중인 프로젝트를 https 방식에서 ssh방식으로 변경하려면...

 

git remote remove origin

 

git remote add origin git@github.com:계정/프로젝트.git

 

git push -u origin main

 

 

'프로그래밍 > ' 카테고리의 다른 글

git, branch 이름 바꾸기  (0) 2021.01.20
vim 잘 쓰기  (0) 2021.01.19
git의 여러가지 취소  (0) 2021.01.18
toolchain 도구  (0) 2021.01.15
vscode에서 platformio 라이브러리 추가  (0) 2021.01.02

* 두가지 취소 방식


reset : 되돌리고 싶은 시점의 commit 이력으로 돌아가는 것

revert : 현재까지의 이력들은 유지한 채 특정 commit 으로 복구하는 컷 (복구 commit이 추가됨)





* add 취소


git reset HEAD [파일]



방금 add 한 파일을 취소한다. 파일명이 없으면 전체 파일을 취소



* commit 취소


git reset --soft HEAD^


comit을 취소하고 해당 파일들을 staged 상태로 만든다.



git reset --mixed HEAD^ (기본옵션)

git reset HEAD^


commit을 취소하고 해당 파일들을 unstaged 상태로 만든다.



git reset HEAD~2


마지막 2개의 commit을 취소한다.



git reset --hard HEAD^


commit을 취소하고 해당 파일들을 unstaged 상태로 해당 디렉토리에서 삭제??




* push 취소


특정 시점으로 되돌리고 다시 push 하는 방식을 취한다.



git reset --hard 커밋해쉬


git push -f 





'프로그래밍 > ' 카테고리의 다른 글

vim 잘 쓰기  (0) 2021.01.19
ssh로 github 사용하기  (0) 2021.01.19
toolchain 도구  (0) 2021.01.15
vscode에서 platformio 라이브러리 추가  (0) 2021.01.02
[git] 리모트/브랜치 관련 내용  (0) 2020.04.21


-objcopy -O binary : 바이너리로 변환

-nm -n : strip되지 않은 elf 파일 내에 있는 심볼을 보여준다.

-objdump -D : 역 어셈블




arm-linu- : arm용 리눅스가 돌아가는 머신에서 동작하는...


arm-none- : arm용 어떤 OS인지 모르는 머신에서 동작하는...



확실하지 않음!!!


'프로그래밍 > ' 카테고리의 다른 글

ssh로 github 사용하기  (0) 2021.01.19
git의 여러가지 취소  (0) 2021.01.18
vscode에서 platformio 라이브러리 추가  (0) 2021.01.02
[git] 리모트/브랜치 관련 내용  (0) 2020.04.21
gcc 내장 함수  (0) 2018.03.22

+ Recent posts