Differences between revisions 2 and 3
Revision 2 as of 2015-02-03 21:26:53
Size: 767
Editor: PieterSmit
Comment:
Revision 3 as of 2015-02-03 21:27:29
Size: 759
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
   1. On client pc clone with $ '''git clone git@hostname:21:repository'''    1. On client pc clone with $ '''git clone githost:repository'''

Git

  • Linux distributed version controll.
  • Notes on using and setting up on Ubuntu.
  • Links https://help.ubuntu.com/lts/serverguide/git.html

  • Setup new repo
    1. Log into server with git account
    2. Create repo with $ git init --bare repository

      • --bare can't be used $ .ssh/config:
        • Host githost
          HostName git.host.de
          Port 4019
          User git
    3. On client edit
    4. On client pc clone with $ git clone githost:repository

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

    7. 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)