- 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)
推薦閱讀
- JavaScript實例自學手冊
- Hands-On Machine Learning on Google Cloud Platform
- Python Algorithmic Trading Cookbook
- 系統安裝與重裝
- Salesforce Advanced Administrator Certification Guide
- 自動化生產線安裝與調試(三菱FX系列)(第二版)
- 空間機器人智能感知技術
- 計算機硬件技術基礎(第2版)
- 天才與算法:人腦與AI的數學思維
- 人工智能基礎
- Mastercam X5應用技能基本功特訓
- 互聯網單元測試及實踐
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- R:Predictive Analysis
- Python Data Mining Quick Start Guide