git config --global [user.name](http://user.name/) <name>
git config --global [user.email](http://user.email) <email>
git config --global core.autocrlf true
git config —global core.editor <editor>
git config —List
git config <key>

mkdir <workspace>
% cd <workspace>
<workspace> % mkdir <working directory>
git add <filename>
git commit -m ‘메모’ <filename>


git remote add origin https://github.com/<repository >.git
git remote add origin https://<username>:<token>@github.com/<repository >.git
git push origin <branchname>

git full origin <branchname>
[실습]
- cat > '파일' : 파일 생성 후 코드 삽입 후 ctrl + D
- git add -> git commot -> git push
- cat : 작성 코드 확인
- git full 후 github에서 내용 변경 가능





- branch 조회 (local branch)
git branch- branch 조회 (remote branch)
git branch -r- branch 조회 (local + remote)
git branch -a
- branch 생성
git branch <branchname>
- branch 이동
git checkout <branchname>
- branch 생성 + 이동
git checkout -b <branchname>
- branch 생성 (local → remote)
git push origin <branchname>
- branch 삭제 (local branch)
git branch -d <branchname>
- branch 삭제 (remote branch)
git push origin —delete <branchname>
"이 글은 제로베이스 데이터 취업 스쿨의 강의 자료 일부를 발췌하여 작성되었습니다.”