编程知识 cdmana.com

version control : Git SVN CVS VSS

RCS
Local version control :

Centralized version control : representative SVN
It's all on the CPU , Synchronize updates

Distributed version control system : Git
Every computer has all the code , Don't go to the server to see . And if the server fails , And backup .
If the download is slow, use the image to download

Brainless installation

Follow Linux command
cd Get into
cd .. Quit this command
ls Show current file
clear Clear the screen
image.png

git config --global --list
View local configuration

image.png

In the installation directory git.cofig in , There's all the configuration
There is no need to configure environment variables

work area , Temporary storage area , Local repository , Remote warehouse
image.png

image.png

1 Create a local warehouse
stay D Disk to create an empty folder , Right click git bash here
Remember to open the hidden folder
Input git init initialization
image.png

git clone In the code cloud url Just fine

View file status
git status

If one is red, it is uncommitted

Add all files to staging area git add .

Submit to local warehouse git commit -m
-m Submit information on behalf of
image.png

modles You don't have to submit

image.png

Which don't need to be set up , Can be generated automatically
image.png

Realize password free login
Find the local , Below the user .ssh Catalog
Generate public key
image.png

Generate successfully , Generate two files
image.png

Put the public key on the code cloud

版权声明
本文为[Wu Liuqi]所创,转载请带上原文链接,感谢

Tags git
Scroll to Top