Skip to content

Latest commit

 

History

History
47 lines (42 loc) · 869 Bytes

File metadata and controls

47 lines (42 loc) · 869 Bytes

Basic essential bash commond for github

git clone "link"
cd "name of repo"

git status -> to check the status of the files modified/added/deleted
git add .
git commit -m "msg"
git push origin main - OR - git push -u origin main
cd ..

Basic commond using vs code , need an empty repo

mkdir folder name
rkdir folder name
cd folder name
git init - initialize git in the folder

#now we can modify and add new files like .py, .css, .html in folder

#To upload this folder in github ... create new repo in git without README.md file
#copy the new repo link

git remote add origin "link"
git remote -v
git branch, git branch -M main
git add .
git commit -m "msg"
git push -u origin main -----> after this git push in fut.
Now all changes will be uploaded to github repo