Can't import bare git project into eclipse via ssh - eclipse

I have recently set up a web server to which a user has ssh access. I created a new git repository on the server by doing the following:
user#server/dev:~$ git init --bare project.git
I am trying to import the project into my local eclipse instance, connecting using ssh. I have entered the following options:
ssh://user#host.com:1234/dev/project.git
Using the valid username and password in the options for "user". However, when I try to connect it fails to do so, but if I try and ssh to that directory as the same user via command line then I am able to get there.
What do I need to do to get the git project working correctly?

Found the problem. You have to use the absolute pathname rather than a user's relative one.
ssh://user#host.com:1234/home/user/dev/project.git

Related

the application requires one of the following versions of the .net framework. how to solve this for github?

enter image description here
when i am trying to push any project to github this error shows. Can anybody help?
In this case, you're trying to use Git Credential Manager Core, which is a credential helper that's commonly installed on Windows. This program is written in C#, which means that you need to have .NET installed.
You have a couple options in this case:
Install .NET as prompted.
Change to a different credential helper by running git config --unset-all credential.helper && git config credential.helper wincred (which would change you to wincred. When prompted for your username, enter it, and then when prompted for your password, enter a new personal access token.
Switch to SSH by using git remote set-url origin SSH-URL, where SSH-URL is the SSH version of your URL. If you haven't generated an SSH key and uploaded the public portion to GitHub, you'll need to do that.

Import git project into Eclipse

I am importing a git project into Eclipse using a git URL. It is giving me the below errors in a popup.
Incorrect URL
No Network Connection (wrong proxy connection)
SSH is not configured correctly.
I have checked that the URL is correct. How to check the remaining 2 options?
Try testing each error-message suggestion one by one:
Confirm the URL again. Never hurts.
Connect to the host machine (or website) where your repo lives from outside of Eclipse. If you can't do this, your connection to the host is probably the issue. If you can, the issue is not with your connection.
Clone the git repo to your machine directly: open a command prompt, navigate to a temporary folder, and git clone <URL>, where is the SSH address you have confirmed. If the repo clones successfully, SSH is working fine on your machine, and it's time to look at Eclipse, and the information you're passing it.
If you provide more information on your environment, network configuration (esp. re: proxies, as #howlger suggests), SSH configuration, and the settings you are passing to Eclipse, the community may be better able to assist with your specific case.

How do I push to Heroku from Eclipse/PyDev?

I have a project written in Python, hosted on Heroku, and which I've been working on in Eclipse/PyDev.
I can commit fine from inside Eclipse, and I can git push heroku master from the command line, but it would be much smoother if I could push a branch directly from Eclipse.
The problem is I'm getting the username and password login prompt in Eclipse for my heroku remote.
Is there any way to set this up to use my SSH key from Eclipse?
Is there any way to set this up to use my SSH key from Eclipse?
Set the ssh keys on your machine and then change the url of the cloned repository to the ssh protocol 'git#....`
Once your keys are set correctly you should not see the username password again.
P.S
Once you set your keys and you have updated the repository url do a first time fetch/pull so your key will be added to the known_hosts file. (answer yes when prompt)

Unable to integrate Github with Pycharm

I have created a repository on Github. I am using Windows 7 64 bit and Pycharm Community edition. I want to integrate the Github repository with pycharm but I am getting the error
Couldn't get the list of GitHub repositories
Connect to api.github.com:443 [api.github.com/192.30.252.127] failed: connect timed out
Although I am able to clone he same repository from command prompt using git clone command.
I had the same issue.
Configure your proxy if using one:
File->Settings->System Settings->HTTP Proxy
Another thing to try is to clone the project locally then add as new project in Pycharm. Afterwards I was able to do all git operations under VCS->git including add/commit/push for my project.
try to check whether you have given the path to Git executable correctly by testing it using test button next to it...(file>settings>version control>Git>path to Git Executable)
make sure you have given the git client path correctly..
C:\Program Files\Git\cmd\git.exe

Using Git Gui Windows - How do you save user credentials - Username and Password

I know this question has been asked before and I've been looking at this link :
https://www.kernel.org/pub/software/scm/git/docs/git-credential-store.html
I'm really really new to using Git Gui Application for Windows and Git Hub in general.
I've "fetched" an existing repository by typing in the URL for the repository from the Git Hub website in the format https://github.com/projectname.git
To push to it, I copy paste files into my local git directory and then hit f5 in Git Gui and commit/push to the origin.
However each time I want to push something - it asks me for my username and password.
The guide says to create a text file named .git-credentials with your username and password in the given format:
https://user:pass#example.com
Question:
How do I link the usage of the .git-credentials file with my Git Gui Application?...Am I using DOS? Or some Git Shell from somewhere?...
Any help would be greatly appreciated...
One solution is to use the GitHub for Windows application: it will store your credentials for you, as mentioned in this GitHub help page.
But it also adds:
If you don't want to use GitHub for Windows, you can download the helper for your OS here:
Windows Vista, 7, & 8 (.NET 4.0 required)
Unzip the file and run the git-credential-winstore.exe program inside. This will start up the helper and update your git config to use it.
Tip: The credential helper only works when you clone an HTTPS repository URL. If you use the SSH repository URL instead, SSH keys are used for authentication.
So you don't need to create yourself a .git-credentials file: the git-credential-winstore.exe program will guide you through it.