git init
git config
git add [file or folder]
git commit -m [message]
git checkout [branch name]
git fetch [remote name]
git merge [branch name]
git remote
git pull
git push
git status
git log
# Created by https://www.toptal.com/developers/gitignore/api/macos,java,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,java,visualstudiocode
### Java ###
# Compiled class file
*.class # 자바의 컴파일 파일인 .class파일을 무시
# Log file
*.log #.log는 프로그램의 실행 정보를 남기는 파일을 무시
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files # 아래 파일같은 것들도 무시
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### macOS Patch ###
# iCloud generated files
*.icloud
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# End of https://www.toptal.com/developers/gitignore/api/macos,java,visualstudiocode
위 코드가 생성.
$ git config --global user.name "username'
$ git config --global user.email "username@hostname"
$ git config --list # 환경 설정 내역을 확인
$ git config --global --list
$ git config --get user.name # 로컬 설정값 확인 (저장소별 설정)
$ git config --list # 위와 동일
$ git help config # 도움말
위 사진처럼 git이 한글로 출력될 경우
$ echo $LANG
위 코드 확인 시 한국어로 설정된 것을 알 수 있다.
$ vim ~/.zshrc
Vim에서 위 문항을 찾으려면 /Lang를 치고 엔터키를 누르면 검색해준다.
기본적으로 LANG=en_US.UTF-8이 주석처리 되어있을텐데 이를 주석 처리 해제
$ source ~/.zshrc
위 명령어 실행 후 확인하면
영어로 복귀된 것을 알 수 있다.