Differences between revisions 1 and 2
Revision 1 as of 2015-02-03 21:20:08
Size: 743
Editor: PieterSmit
Comment:
Revision 2 as of 2015-02-03 21:26:53
Size: 767
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
   1. Create repo with $ git init --bare repository    1. Create repo with $ '''git init --bare repository'''
Line 19: Line 19:
   1. On client pc clone with $ git clone git@hostname:21:repository    1. On client pc clone with $ '''git clone git@hostname:21:repository'''
Line 21: Line 21:
   1. git commit -a # Commit all changes to the local version of the repository
   1. git push origin master # Push changes to the server's version of the repository
   1. '''git commit -a''' # Commit all changes to the local version of the repository
   1. '''git push origin master''' # Push changes to the server's version of the 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 git@hostname:21: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)