759
Comment:
|
924
Re-shuffel info
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
1. Log into server with git account 1. Create repo with $ '''git init --bare repository''' * --bare can't be used $ .ssh/config: |
1. Log into server, create git account, set it to use git-shell (no login), add .ssh/authorized keys for access with no password. 1. 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. |
Line 18: | Line 20: |
1. On client edit |
Git
- Linux distributed version controll.
- Notes on using and setting up on Ubuntu.
- Setup new repo
- Log into server, create git account, set it to use git-shell (no login), add .ssh/authorized keys for access with no password.
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
On client pc clone with $ git clone githost:repository
- #(edit some files
git commit -a # Commit all changes to the local version of the repository
git push origin master # Push changes to the server's version of the repository
...