Issue
How to commit code into GitHub Server using eclipse ?
when I run this command
git push -u origin master
It shows the following error
error: The requested URL returned error: 403 while accessing href="https://github.com/something/something" rel="nofollow noreferrer">https://github.com/something/something
Solution
I am not expert but i have done this once
think simple and straight way is
1.Download Git to your system
2.cd to your eclipse prject cd /workspace/sampleproject
3.Commands
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/gitusername/reposname.git
git push -u origin master this line may throw an error but no problem
4.From eclipse ->Help->eclipse marketplace ->search for 'git' -> install 'Egit-git team provider'
5.Go to eclipse ->Windows ->Open perspective ->Git repository
6.From Git repository view on the left side on 'Add existing local repos' then browse to '/workspace/sampleproject'
7.Now Right click on this added Repository location and add comments press Commit.
8.Now Right click on this added Repository click Push
By default Configured remote repository should be checked then press Next
From Source Ref and Destination Ref Select HEAD //you may change if u want
Select next give your github username and password then click on Finish.
Answered By - gYanI
Answer Checked By - Pedro (JavaFixing Volunteer)