Question: My friend's project in Git repository, have downloaded 'Git-1.9.4-preview20140929.exe' and installed GIT bash to pull the project to my end, which I did using 

```
$ git clone <with SSH clone URL>

```

I got the project in my local system, and have done few changes now I want to push the changes back to repository, so I did

```
$ git init
Reinitialized existing Git repository in c:/users....

```

and

```
$ git add .
$ pom.xml
./pom.xml: line 1: project: No such file or directory
./pom.xml: line 2: syntax error near unexpected token `newline'
./pom.xml: line 2: `  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http
://maven.apache.org/maven-v4_0_0.xsd">'

```

and 

```
 $ git commit -m 'First commit'
 On branch master
 Your branch is ahead of 'origin/master' by 2 commits.
   (use "git push" to publish your local commits)

 nothing to commit, working directory clean

```

and 

```
$ git push -u origin master:master
Enter passphrase for key '/h/.ssh/id_rsa':
ERROR: Repository not found.
fatal: Could not read from remote repository.

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

```

or

```
 $ git push origin master
 Enter passphrase for key '/h/.ssh/id_rsa':
 ERROR: Repository not found.
 fatal: Could not read from remote repository.

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

```

Most of them having a same problem (previous Stack Overflow question/answers) but different reasons, and have tried with those answers but couldn't able to fix the error, please give me directions on this, thanks!

Answer: 
After [the chat](https://chat.stackoverflow.com/rooms/65360/discussion-between-vonc-and-java-beginner), the right way to configure the link with github is:

```
cd c:\Users\ramas\dmsproject\dms
git remote set-url origin git@github.com:vamsiannem/dms.git

```

Then a `git push` can work.
I had this problem too but finally I found the file that had edited and not commit in my working area. So after I commit,and like this:

![enter image description here](https://i.stack.imgur.com/fMIwv.png)

and then I use the `git push -u origin master` it finished!