- First goto project folder
- Initialize git by git init command
- Set username with git config user.name "username” command
- Set email with git config user.email "[email protected]” command
- Now create a repository in GitHub
- Now we will either set or add origin based on project status
- As github disabled using plain password in git url we need to get github personal access token from here
- Newly added git project git remote add origin https://username:[email protected]/saiumesh535/chi-http.git
- Existing git project git remote set-url origin https://username:[email protected]/saiumesh535/chi-http.git
Discard Local local changes git clean -fd
It helps the best for most of people😄