[2] 250909~ 클라우드/[b] 12월 : Terraform + Ansible

[22] git, github

서버관리자 페페 2025. 12. 29. 17:00
[ Working Directory ]
        ↓
      git add
        ↓
[ Staging Area ]
        ↓
     git commit
        ↓
[ Local Repository (.git) ]
        ↓        ↑
     git push   git pull
        ↓        ↑
[ Remote Repository (GitHub) ]

 

# git (local)
git init
git add .
git commit -m "Initial commit"
git branch -M main


# github (remote)
git remote add origin https://github.com/riptae/aws-lab.git
git push -u origin main

 

.gitignore 만들어야 한다

.terraform/
*.tfstate
*.tfstate.*
crash.log
*.log
.terraform.lock.hcl