Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+3 votes

It shows an error and does not even go to staged changes at the time, when it does it says can't connect to the repository. HAving some trouble to commit and push.

asked in CSC305 Fall 2021 by (1 point)

1 Answer

+1 vote

When you add a repository, press the add clone repository (the one with the green arrow). Then paste the URL of your repo, then type .git in the URL. Initialize the repo, then you should be able to push. Also, make sure your repo on GitHub is public.

It is possible that the repo is set up correctly but Eclipse didn't execute correctly. This has happened to me a couple of times...so just restart Eclipse and it shouldn't be a problem. Or just add a space somewhere in the code and then try commit and push.

When you're adding--or re-adding--your repository, make sure to delete your previous repos on the sidebar. It will save you the headache of wondering which one works!

This video helped me with this process. Hopefully, it will help you too

answered by (1 point)
+1

Oh, by the way, don't use GitBash! Too complicated! You should just be able to push using eclipse!

...