官术网_书友最值得收藏!

Git installation and initialization

Git is a version control system which tracks the changes when working with computer codes while GitHub is a web-based Git version control repository hosting service. Git is installed on a local computer whereas GitHub is hosted on web platform. In our test scenario, we will utilize the free Git service by signing up and creating our repository online at https://github.com/

The following steps guide us through creating a repository in Git:

  1. Click on New repository:
  1. Give a name to the repository (in this case, mytest), and click on Create repository:
  1. Note the instructions to clone (that is, make a copy of this repository) on your local machine:
  1. Download and install the Git client from https://git-scm.com/downloads, choosing the release for the OS of the machine. In our test, we have a Windows 10 machine, hence we are using the Git client for Windows.
  2. Follow the instructions to clone the Git repository in your specific folder. From Command Prompt, run the following command:
 C:\test>git clone https://github.com/pnaedition2/mytest.git
Cloning into 'mytest'...
warning: You appear to have cloned an empty repository.
C:\test>cd mytest
C:\test\mytest>git pull
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.

  1. To confirm (validate) if configuration is working, get a Git status:
C:\test\mytest>git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
git
nothing added to commit but untracked files present (use "git add" to track)
主站蜘蛛池模板: 潜山县| 手机| 林甸县| 沾化县| 东丽区| 定西市| 朔州市| 个旧市| 铜山县| 阿坝| 来宾市| 博爱县| 读书| 双峰县| 通州区| 义乌市| 岫岩| 襄汾县| 衡阳县| 恩平市| 卫辉市| 建水县| 姜堰市| 静安区| 德清县| 满洲里市| 博客| 江源县| 德格县| 衡阳市| 临邑县| 建昌县| 自贡市| 砀山县| 玉林市| 故城县| 石嘴山市| 南阳市| 岚皋县| 达拉特旗| 雷山县|