Wednesday 7 May 2014

Please make sure you have the correct access rights and the repository exists


$ git pull origin branch/OOP-123

ssh: git.proj.corp.com: no address associated with name
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


SOLUTION:

Your network is unable to connect to git server because it is unable to point the Git repository ip
Solution 1:
In your organization if you have multiple networks simply change your network to other network and try.

Solution2:
It is a permanent solution.

And it is DNS Settings problem and the machine simply could not reach the remote git repository.
Because you have to specify which DNS server have to use or which IP address should be used for a particular git domain.


DNA settings help :

It is good to ask your network administrator to setup these in oranization if you are not sure about these or else here
here you go for solution.

WAY1:

Map IP Addresses in hosts file.
This method allows you to create settings for individual domains without altering your main DNS preferences. This is useful if you don't have access to a DNS or if you want to specify the location of a single domain without interfering with any of your other online activities.

Open the following file in a plain text editor such as Notepad:
C:\WINDOWS\system32\drivers\etc\hosts

The file looks like the one below. At the end of the file (in this case, under the localhost entry), enter the IP and domain you wish to specify. When your browser attempts to access a domain it refers to this file first - if the domain is found here then the specified IP address will be used.
If the domain is not found here, then the normal DNS server (as specified above) will be used.


WAY 2:

Goto My Computer -> Dailup Networking
Right click your internet connection and select Properties
Window will open click the Server Types Tab and then click TCP/IP Settings.

Click Properties.

No comments:

Post a Comment