Programming/GitHub
From HPC
Revision as of 10:33, 29 March 2019 by Pysdlb (talk | contribs) (Created page with "__TOC__ ==Introduction== GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version c...")
Contents
Introduction
GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management functionality of Git as well as adding its own features.
Usage
GitHub clients are available for Windows too; see https://git-scm.com/download/gui/windows.
Although this will bias towards the Linux command line which is the same as our HPC.
Clone repository
If you just want to download other public repository then this can be downloaded from the GitHub web page itself or within the HPC (Linux) command line as follows:
$ git clone https://github.com/enggen/Deep-Learning-Coursera
Create repository
First you need an account on GitHub (or GitLab)
- Create a repository on Github under your account (on Web page)
- Then under Linux:
$ git clone https://github.com/<myacc>/<myrepol> $ cd myrepo1 $ git init Initialized empty Git repository $ <do whatever you need to do> $ git add -A $ got commit -a $ git push
Update a repository
$ git clone git@gitlab.com:<myaccount>/<myrepro> $ cd <myrepo> $ <do whatever you need to do> $ git add -A $ got commit -a $ git push