- Practical Network Automation
- Abhishek Ratan
- 252字
- 2021-07-02 14:53:09
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:
- Click on New repository:

- Give a name to the repository (in this case, mytest), and click on Create repository:

- Note the instructions to clone (that is, make a copy of this repository) on your local machine:

- 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.
- 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.
- 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)
推薦閱讀
- 后稀缺:自動化與未來工作
- Project 2007項目管理實用詳解
- Mastering Proxmox(Third Edition)
- Hadoop Real-World Solutions Cookbook(Second Edition)
- 現(xiàn)代傳感技術(shù)
- 聊天機器人:入門、進(jìn)階與實戰(zhàn)
- Kubernetes for Developers
- 網(wǎng)絡(luò)安全與防護(hù)
- 運動控制系統(tǒng)
- 教育機器人的風(fēng)口:全球發(fā)展現(xiàn)狀及趨勢
- INSTANT Munin Plugin Starter
- 嵌入式GUI開發(fā)設(shè)計
- Mastering Ceph
- Java組件設(shè)計
- 基于人工免疫原理的檢測系統(tǒng)模型及其應(yīng)用