Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 1.16 KB

File metadata and controls

39 lines (37 loc) · 1.16 KB

When you want to download a new repository in remote files (GitHub) into local files (VS Code)

git clone 'link in github'
git clone https://github.com/Rabia2698/All-basic-github.git

When you want to download a new repository in local files (GitHub) into local files (VS Code)

git init git add . git commit -m "write messages example: Update FilesNames" git push origin main

When make change in local files (VS Code), then want to update in remote files (GitHub)

git add .
git commit -m "write messages example: Update FilesNames"
git push origin main

When make changes in remote files (GitHub), then want to update in local files (VS Code)

git pull origin main

Change the path in terminal

cd ../filesnames
cd ../All-basic-github   or    cd All-basic-github

This change from folder file to repository files

cd ..

This change from repository files to folder

Others

git clear           = to clear all thing in terminal
git status          = to check the status in the files
git remote -v       = to check the path to push the files
git restore         = to restore the change u make to original before commit or add