Git & Github Komutları

1. .gitignore Dosyası İçeriği:

/node_modules
/.pnp
.pnp.js
/coverage
/.next/
/out/
/build
.DS_Store
*.pem

2. Git Başlatma:

git init

3. GitHub Repo Bağlama:

git remote add origin https://github.com/KULLANICI/REPO.git

4. İlk Commit:

git add .
git commit -m “İlk commit”

5. Branch Oluşturma:

git branch -M main

6. Push:

git push -u origin main

7. Sonraki güncellemeler için:

git add .
git commit -m “Değişiklik açıklaması”
git push