Steps to push your projects on Github:
- Go to the that specific project folder-->Right click mouse-->"select GIT Bash Here".
- Create a new Repository and get is https link = (github repo link)
- typefollowing commands.
touch .gitignore
add names of files/folders in that filw who u wish not to be uploaded
git init
git remote add origin "github repo link without quotes"
git remote -v
git add .
git commit -m "First Commit"
git push origin master
Steps to clone a repo in local machine:
- First fork the repo (if are cloning other's repo)
- Then click on Code and copy the https address
- Open gitbash where u want to store the repo locally in your computer
- Type git clone, and then paste the URL you copied earlier and press enter.
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
Reference link: https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository