Git Repo, push from linux server

To push an existing Project directory to Git Repository, follow below steps –

1. Create a project on your Git account, for example lets say we created Project name KST-project1.
2. Now go to your linux/mac/windows VM or machine or laptop
3. cd into your development project directory, for example I have developed a php project name kst_market -
cd kst_market
4. Now run below commands -
sudo git init
git add .
sudo git add .
ls

sudo git commit -m 'KST Market HTML/PHP/React Code 02042021'

sudo git remote add origin https://github.com/KST/KST-poject1

git remote -v
sudo git remote -v
sudo git push origin master

thats all, enjoy :)

Leave a Reply

error: Content is protected !!