git --version
git config --global user.name "YOUR_USERNAME"
git remote -v
git remote rm origin
git config --global user.email "your_email_address@example.com"
--global If you want to override this with a different username or email address for specific projects, you can run the command without the --global option when you’re in that project
git config --global --list
Adding an existing project to GitHub using the command line
https://github.com/new Then enter your repository name, Click on create repository button
Step2 : Open command line, Change the current working directory to your local project then run the below command one by one
git config --global user.email "usermail@gmail.com"
git config --global user.name "username"
git init
git add .
git commit -m "first commit"
git push -u origin master
git init git clone {repository url} git checkout -b {branch_name} git add . git commit -m "first commit" git push origin {branch_name} git clone {repository url} cd widget echo "# My project's README" >> README.md git add README.md git commit -m "Initial commit" git push -u origin master