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

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)
主站蜘蛛池模板: 贵州省| 桦甸市| 龙门县| 六安市| 江山市| 承德县| 图木舒克市| 凉山| 江华| 晋宁县| 凌云县| 聊城市| 汪清县| 资兴市| 襄垣县| 贵定县| 平潭县| 华坪县| 宜兰县| 荆州市| 芷江| 哈尔滨市| 合川市| 焉耆| 宜昌市| 永昌县| 新兴县| 伊金霍洛旗| 浙江省| 许昌市| 晋宁县| 延川县| 垣曲县| 寿宁县| 新丰县| 定安县| 华蓥市| 瓦房店市| 肥西县| 抚州市| 禹城市|