Loading...
By KarnatakaPUCS Team on 7/10/2026
Version control is essential for developers. Learn Git to manage your code effectively.
Git tracks changes in code, enabling collaboration and history management.
bashgit config --global user.name "Your Name" git config --global user.email "your@email.com"
bashgit init
bashgit add . # Stage all changes git commit -m "message" # Commit changes
bashgit status
bashgit log --oneline
bashgit branch feature # Create branch git checkout feature # Switch branch git merge feature # Merge branch
bashgit remote add origin https://github.com/user/repo.git git push -u origin main git pull origin main
Tell Git which files to ignore:
node_modules/
.env
*.log
dist/