Git & Github Commands

1. .gitignore File Content:

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

2. Initialize Git:

git init

3. Connect GitHub Repo:

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

4. First Commit:

git add .
git commit -m “First commit”

5. Create Branch:

git branch -M main

6. Push:

git push -u origin main

7. For future updates:

git add .
git commit -m “Change description”
git push