Learn more about Github and github.
1. installation:
First, find the git official website with a download link.
You can also use the following, my win7 64-bit system:
Download here: Git-2.13.0-64-bit.exe link: http://pan.baidu.com/s/1dFIOU1V password: xky2
The following figure shows the effect after installation:
Git: A code file can be used to express all versions. The principle is to store each file by taking snapshots for each version. Only txt text files are allowed.
Is the bash window. You can enter a command in it.
2. Create
Right-click E: \ python \ gitTUT and select Git Bash Here to open a bash window in the current path.
Set User Name:
Git config -- global user. name "longbiscuit"
You can use git config user. name to check the input user name.
Set Email:
Git config-global user. email "blzhu@buaa.edu.cn"
Initialization:
Git init
The. git folder is automatically initialized and generated in the directory,
Show all files: Ls-
After you enter open. git, the hidden folder is automatically opened. But I didn't open it. It doesn't matter. You can open it manually.
Create File 1.py: touch 1.py
But it has not been added to the git management library yet (git is a local version and github is an online version. This client can be used for direct management or online upload ).
Check status: gitStatus