Git Basics: Initialize a Repository: git init Clone a Repository: git clone <repository-url> Check Status: git status Stage Changes: git add <file> git add . # Stage all changes Commit Changes: git commit -m "Commit message" Vi...
dipen.hashnode.dev3 min read
richardev
Full-stack Developer
Gonna leave this here (pushing existing project to GH repo):
git init git add . git commit -m "Add existing project files to Git" git remote add origin https://github.com/<username>/<repo>.git git push -u -f origin main