Verify you have access

Make sure your ssh public key has been added. See the instructions in Canvas. You can verify this by running:

$ ssh info
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is d4:72:77:d5:0d:4e:9f:27:c6:13:08:a9:ef:71:07:3e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (ECDSA) to the list of known hosts.
hello sree, this is cs377p@git1 running gitolite3 v3.6.3-11-g2417156 on git 2.5.3

 R   C  homeworks/CREATOR/hw4/ex[237]
 R W    homeworks/sree/hw4/ex3

Clone the exercise repository

Clone the repo corresponding to the homework and exercise (replace EID with your EID):

$ git clone

For example (ignore the warning):

$ git clone
Cloning into 'ex2'...
Initialized empty Git repository in /v/filer4b/v44q008/repositories/homeworks/sree/hw4/ex2.git/
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

This will create a folder called ex2 in the current directory.

Add the files that you want to submit to the repository

You can either copy these files from where you were editing them or edit them inplace in the directory, just like a normal source repository.

Here we will assume submission.c will be copied from ~/src/

$ cd ex2
$ cp ~/src/submission.c .
$ git add submission.c
$ git commit -m 'my submission'

Push the repository to the server

Do not forget this step!

$ git push

You should see:

$ git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 230 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
 * [new branch]      master -> master

If this is the first time you're using git, you may instead see this error:

[lots of stuff omitted]
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to ''

In that case, execute this git config --global push.default simple and retry the git push.