git config --global user.name "Your Name"
git config --global user.email "you@example.com"
cat ~/.gitconfig
git config user.name "Your Name"
git config user.email you@example.com
- 버전관리를 처음 시작하는 로컬의 디렉토리를 로컬 git 저장소로 만드는 방법(git init)
- 버전관리를 처음 시작하는 로컬 디렉토리에 리모트 저장소의 git을 가져오는 방법(git clone)
Git 저장소 예제
$mkdir codey → $cd codey → $git status codey 폴더 만들기 → codey 폴더에 들어가기 → 명령어 git status
mkdir codey // codey 폴더 만들기
cd codey // codey 폴더에 들어가기
git status // 명령어 git status; 상태확인
→ git init
git repository만듦
→ git status
git 인식
$ ls -a ./ ../ .git/
git clone https://github.com/사용자이름/레포지토리이름.git
이렇게하면, github에 있는 레포지토리가 로컬에 복제된다!
728x90
'Git이당' 카테고리의 다른 글
Git 기본 명령어 모음 및 간단한 실습자료 (0) | 2024.05.03 |
---|---|
vim 명령어 정리 (1) | 2023.11.09 |
Git이란? (1) | 2023.10.18 |