
개발자에게는 협업 능력이 매우 중요!
개발자의 생산성 키워드

잔디?
Commit?
1일 1커밋하기
💡 참고자료
- 기본서 : Pro Git
- 그 외 콘텐츠 : 지옥에서 온 Git
Git
GitHub
Git vs GitHubgit --version

my-email@gmail.com : 자신의 이메일 주소my-username : 자신의 username$ git config --global user.email "my-email@gmail.com"
$ git config --global user.name "my-username"
git config -l
$ cd ~
$ cd aiffel
$ mkdir workplace
cd workplace
git init


README.md
md
리드미 파일 만들기
# first-repository라는 1줄이 자동 입력$ cd ~/aiffel/workplace
$ echo "# first-repository" >> README.md
cat 명령어
git status

변경사항 저장하기
add, commit-m : 메시지 옵션(뒤에 해당 커밋에 대한 설명 작성 가능!)
add와 commit의 차이는?
add
git commit
🚨 주의 사항
- 이미 리드미 파일을 만들어뒀으니 레포지터리 생성 시 체크 해제할 것!
$ cd ~/aiffel/workplace
$ git remote add origin https://github.com/xxx/first-repository.git
https://github.com/xxx/first-repository.git : 본인 레포지터리 주소 클립보드로 복사해 사용!
$ git config credential.helper store
$ git push origin main
git config credential.helper store : push 할 때 마다 로그인을 하도록 하지 않게 해주는 명령어
오류 발생 시 git push origin master로 진행!

브랜치의 사용 목적

global 옵션을 사용하면 폴더에 정보가 저장됨./aiffel 폴더 안에 저장되게 해야 클라우드 환경에 바뀌어도 계정 정보 유지 가능!$ cd ~/aiffel/workplace
$ git config credential.helper "store --file ~/aiffel/.git-credentials"



$ rm ~/aiffel/.git-credentials
$ ls -a
$ cd ~/aiffel/workplace
$ git config --unset credential.helper
$ git config -l
project에 가져오기$ cd ~
$ cd aiffel
$ mkdir project
$ cd project
clone 명령어로 해당 레포터터리 끌어오기
a. 본인 깃허브 username을 넣어야 함!

잘 복사되었는지 확인

$ echo "add new contents" >> README.md

git status로 변화 추적이 되는지 확인해보기

add, commit, push진행하기

적용되었는지 확인하기

git pull origin main
해당 챕터의 이미지 출처는 아이펠 LMS 시스템입니다.

workplace : 로컬 저장소add, commit, push 명령어 : 원격 저장소로 전송!first-repository 디렉터리로 복제 ➡️ 파일 수정 후 ➡️ 다시 원격 저장소로 전송workplace로 가져와 처음 만든 저장소 업데이트(pull) 작업 진행!GitHub push & pull만으로 빠르게 협업 가능!
md 확장자를 가진 마크다운 파일 렌더링을 하면 ➡️ 큰 문자, 볼드체, 링크, 리스트 등으로 표현!
## This is a H1
## This is a H2
### This is a H3
#### This is a H4
##### This is a H5
###### This is a H6
1. 첫번째
2. 두번째
3. 세번째
- , * , +- 빨강
- 녹색
- 파랑
------

[보여줄 이름](http://...link..)[구글](https://google.com)
single asterisks
single underscores
double asterisks
double underscores
cancelline
*single asterisks*
_single underscores_
**double asterisks**
__double underscores__
~~cancelline~~
print("hello Markdown")

2칸 이상 띄어쓰기!* 줄바꿈을 하기 위해서는 문장 마지막에서 2칸 이상을 띄어쓰기해야 한다.
이렇게
* 줄 바꿈을 하기 위해서는 문장 마지막에서 2칸 이상을 띄어쓰기해야 한다.__ # 띄어쓰기
이렇게

# 사이즈 조절
<img src="/path/to/img.jpg" width="450px" height="300px"></img>