Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Commit changes to remote repository

From: ruperty <hidden>
Date: 2016-06-15 22:52:47

Being new to git I am probably not doing things correctly so pointers in the
right direction would be useful.

What I want to do make changes on my laptop and commit them to a remote
repository. Here is what I have done,

1. Created a repository on my remote linux host, in a folder of cource code,
by,

   git init
   git add *
   git commit

2. On my laptop I did a git clone pointing by ssh to the remote repo which
downloaded all the files to my local system.

3. I changed a file locally and did a commit.

4. I then wanted to update the remote repo with my change, which I did with
a git push, but that didn't work, getting this error,

    remote: error: refusing to update checked out branch:
refs/heads/master
    remote: error: By default, updating the current branch in a non-bare
repository.......


What am I doing wrong?

I was following the tutorial at
http://book.git-scm.com/3_distributed_workflows.html

I did search for this issue in this list but didn't understand the
responses.

Rupert


--
View this message in context: http://git.661346.n2.nabble.com/Commit-changes-to-remote-repository-tp7185551p7185551.html
Sent from the git mailing list archive at Nabble.com.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help