본문 바로가기

config3

Git - 자주 사용하는 커맨드 등록(alias), 추천 커맨드 예제 유닉스 시스템과 같이 자주 사용하는 커맨드(명령어)를 git에서도 사용할 수 있다. 이를 alias(별명)으로 부르는데 alias는 gitconfig파일을 이용하여 등록하거나 git config 커맨드를 사용하여 등록할 수 있다. 실행환경 Windows 10에 Git이 설치된 환경에서 Git bash를 실행한다. 1. gitconfig 파일 사용, alias 등록 gitconfig파일 열기 git config 명령을 사용하여 .gitconfig파일을 연다. $ vi ~/.gitconfig위와 동일하게, 아래 명렁어로 .gitconfig파일을 열수 있다. $ git config --global -e커맨드 등록 .gitconfig에 [alias]부분에 자주 사용하는 커맨드를 등록한다.( vi 편집 ) [us.. 2022. 1. 19.
Git - Remote 브랜치 안보일 때 해결방법 remote 신규 브랜치 안보일 때 git branch -a 명령으로 remote에 생성한 신규 브런치가 안보일 때, git ls-remote origin 명령으로 확인한다. 신규 브랜치가 보이는지 확인한다. Config 수정 Config 수정은 아래 두 개의 방법으로 수정 가능하다. 1. config file수정 .git/config 명령으로 git config를 수정할 수 있다. .git/config or git config --global --edit remote 이름 origin 을 아래와 같이 수정한다. .. [remote "origin"] url = ... fetch = +refs/heads/*:refs/remotes/origin/* .. 2. config cmd 수정 git config re.. 2021. 9. 27.
git - Make sure your configure your 'user.name' and 'user.email' in git, VS code git commit 시 위와 같은 메세지가 뜨는 경우 콘솔창에서 아래와 같이 user.name 과 user.email 을 등록한다. console> git config --global user.name "yourname" console> git config --global user.email "address@example.com" 2020. 2. 23.