Git Setup and Project Upload - Basic Commands
1. git config --global user.name "Your Name" # Set author name
2. git config --global user.email "
[email protected]" # Set author email
3. ssh-keygen -t ed25519 -C "
[email protected]" # Generate SSH key
4. cat ~/.ssh/id_ed25519.pub # Show public SSH key
5. git init # Initialize Git in folder
6. git add . # Stage all files
7. git commit -m "Initial commit" # Commit with message
8. git remote add origin
[email protected]:username/repo.git # Link to GitHub
9. git branch -M main # Set main branch
10. git push -u origin main # Push code to GitHub
11. git add -u # Stage file deletions
12. git commit -m "Remove extra files" # Commit deleted files
13. git push # Push latest commit
14. git config --list # Show Git config settings
15. ls ~/.ssh # List SSH files