git init // jab aap apne desktop pr koi folder ya file create krte ho .. git uske baare me kuch nhii jaanta or if you want ki git jaane aapki file ko , aap git init ki help se git ko initialize krte ho or git se kehte ho ki git file ko track kro, aap iss file ko jaano.... git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/yashsaraswat2004/Demo.git git push -u origin main
Staged changes Unstaged Staged or Added Committed
git log --oneline :- used to see all the saved point or checkpoints of your code... git reset --hard HEAD~1 :- to delete saved or check points... git status -s // to know the status(changes and states) of your file whether untracked, modified.... and ye sirf unka status btaega jo committed nhii h ya modified nhii huii wrna kuch nhi btaega
//Branching--