git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pushing a git repository to a new server
@ 2013-02-10 21:00 Ethan Reesor
  2013-02-11  7:50 ` Konstantin Khomoutov
  0 siblings, 1 reply; 10+ messages in thread
From: Ethan Reesor @ 2013-02-10 21:00 UTC (permalink / raw)
  To: git

I'm looking to make a command to push a git repo to a new server. The
way I just did it is as follows:

localhost> git clone --bare /path/to/MyRepo /path/to/tmpdir/MyRepo.git
localhost> tar xz /path/to/tmpdir/MyRepo.git | ssh myuser@remotehost
tar cz \~/      # If I don't escape '~', my local machine expands it
localhost> ssh myuser@remotehost
remotehost> sudo chown -R git:git MyRepo.git

The reason I had to use my user is the git user's shell is git-prompt
and ~git/git-shell-commands is empty. I have repos set up using
'git@remotehost:MyOtherRepo.git' as the remote and everything works.

How do I make a git command that can talk to the server using
git-prompt like the other commands do?

--
Ethan Reesor

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-02-13  8:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-10 21:00 Pushing a git repository to a new server Ethan Reesor
2013-02-11  7:50 ` Konstantin Khomoutov
2013-02-11  7:57   ` Ethan Reesor
2013-02-11 12:45     ` Konstantin Khomoutov
2013-02-11 18:18       ` Ethan Reesor
2013-02-11 16:27     ` Jeff King
2013-02-11 18:17       ` Ethan Reesor
2013-02-12 11:28       ` Michael J Gruber
2013-02-12 20:42         ` Jeff King
2013-02-13  8:08           ` Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).