Differences between revisions 4 and 5
Revision 4 as of 2015-03-13 20:09:00
Size: 924
Editor: PieterSmit
Comment: Re-shuffel info
Revision 5 as of 2015-03-13 20:09:39
Size: 944
Editor: PieterSmit
Comment: New heading.
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
 * Setup new repo == How to setup GIT private server ==

Git

How to setup GIT private server

  1. Log into server, create git account, set it to use git-shell (no login), add .ssh/authorized keys for access with no password.
  2. Create repo with $ git init --bare repository

1. On client edit

  • --bare can't be used
  • Setup .ssh/config, see example if using port, and can even use specific port.
    • Host githost
      HostName git.host.de
      Port 4019
      User git
  1. On client pc clone with $ git clone githost:repository

  2. #(edit some files
  3. git commit -a # Commit all changes to the local version of the repository

  4. git push origin master # Push changes to the server's version of the repository

...


CategoryLinux

GitHowTo (last edited 2022-02-14 03:19:33 by PieterSmit)