Git 설정 파일의 종류
for all users
file path : /etc/gitconfig
$ git config --system
for current user
file path : ~/.gitconfig
$ git config --global
for current repository
file path : ~/.git/config
$ git config --local // 이것이 default 옵션이다.
git init command
기존프로젝트를 Git 으로 관리하고 싶을때
$ git init
새로운 디렉토리를 생성하여 git 저장소를 만들때
$ git init directory path
사실 위 명령어는 아래와 같은거다 +_+
$ mkdir directory_name $ cd directory_name $ git init
실습
$ cd ~/Documensts/workspace/ $ git init git-study $ cd git-study $ tree .git .git ├── HEAD ├── branches ├── config ├── description ├── hooks │ ├── applypatch-msg.sample │ ├── commit-msg.sample │ ├── post-update.sample │ ├── pre-applypatch.sample │ ├── pre-commit.sample │ ├── pre-push.sample │ ├── pre-rebase.sample │ ├── prepare-commit-msg.sample │ └── update.sample ├── info │ └── exclude ├── objects │ ├── info │ └── pack └── refs ├── heads └── tags 9 directories, 13 files
'Git' 카테고리의 다른 글
5. Git Remote (0) | 2016.10.18 |
---|---|
4. git branch 이해하기! (0) | 2016.10.17 |
[부록] git alias (0) | 2016.10.17 |
2. git add, commit, status 명령어 (0) | 2016.10.17 |
0. Git 강의 (0) | 2016.10.07 |