Git-Automerge

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Git-Automerge

From: Nico Schümann <hidden>
Date: 2016-06-15 22:48:33

Dear Git people,

after having been convinced by Linus Torvald's talk on git, I've been
using it for some days now.

But there is one thing that just does not get into my mind, or maybe I
am just thinking too complicated.

What I have is a productive system, let's call it MASTER and my
development machine, call it ME.

Now I made a copy of the MASTER tree by
$ git pull me@master:/path/to/stuff

And did some changes:
$ nano -w blablabla

Then I commited:
$ git commit

Everything fine until now.

What I want now are the changes to apper on the MASTER server, so I say
$ git push

But the changes do not appear on the master server. I have to type

# git reset --hard      or
# git checkout -f
in order to make the changes appear. Since I do not want to login onto
that MASTER machine every time, what command do I miss on my developer
machine?

Thanks in advantage,
Nico

Re: Git-Automerge

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:48:33

Hi,

On Sun, Apr 4, 2010 at 10:17 PM, Nico Schümann
[off-list ref] wrote:
$ git push

But the changes do not appear on the master server. I have to type

# git reset --hard      or
# git checkout -f
git-push only propagates history and updates refs. It doesn't touch
files in the working tree. I suspect you're pushing to a non-bare
remote. Please see --bare option in git-init (1) and this FAQ [0] on
the Git Wiki for more.

[0] https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F

-- Ram
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help