Wednesday, 8 June 2016

Git on linux - a few fixes to some issues

A brief list of issues and ways to resolve when working on linux

Attempting to communicate with the server but this happens eg:

#git remote show origin

(gnome-ssh-askpass:18745): Gtk-WARNING **: cannot open display: localhost:12.0

Yep I do not have a display. Solution;


Attempt to push the first version of the repo but this happens:

#git push -u origin master

error: The requested URL returned error: 403 Forbidden while accessing

fatal: HTTP request failed

Turns out that I cut and pasted the code from github to setup the repo which included the line:

git remote add origin

This does not include the username I wish to login as I therefor eneed to change this locally to be:

To do this:

# git remote set-url origin

And away we go:

I did a #git add * but too much got added including my config/local.js file. 
Before the commit remove this:

# git reset config/local.js

No comments:

Post a Comment