Git 기본 안내
설치
- Arch Linux
- Debian
sudo pacman -S git
sudo apt install git
git config --global user.name "Hyeonki Hong"
- 회사 아이디, 개인 아이디 등 여러 email을 사용하는 경우
--global대신 각 리포지토리에서--local옵션으로 설정하면 됩니다.
git config --global core.autocrlf input \
&& git config --global core.eol lf \
&& git config --global core.editor vim \
&& git config --global core.ignorecase false
- Linux
- macOS
git config --global credential.helper 'cache --timeout=86400'
git config --global credential.helper osxkeychain
clone
git clone <repository>
git clone <repository> -b <tag or branch> --single-branch
git clone <repository> -b <tag or branch> --depth <# of commit>