1. Local Repository 생성하기
mkdir exam_project
cd exam_project
2. 파일 생성 후 Git 으로 관리 시작하기
touch exam.txt
git init
git add exam.txt
git commit -m 'add exam.txt' exam.txt
git remote add origin https://<username>:<token>@github.com/<repository>.git
git remote -v
git push origin master
6. Remote Repository 변경 내용을 Local Repository 에 반영하기
cat exam.txt
git pull origin master
cat exam.txt
touch exam2.txt
git add exam2.txt
git commit -m 'commit 1' exam2.txt
git push origin master
git pull origin master
cat exam2.txt
# 내용을 넣어 exam3 생성
cat > exam3.txt
This is git exam3.
# ctrl + D
git add exam3.txt
git commit -m 'commit 3' exam3.txt
git push origin master
git pull origin master
cat exam3.txt