git basis of common commands

content

The new initialization code repository, do some proper configuration;

Start or stop a trace of certain documents;

Scratch or submit some updates.

How to get Git to ignore certain files, or files that match the name of a specific pattern;

How to undo minor errors committed by both quickly and easily;

How to update browsing history project, see the difference between a two updates;

And how to pull data from a remote data warehouse down or push up.

Clone repository (existing project on cloning people or github https://github.com)

Under the project directory (Custom), right-git Bash Here, input

git clone url

url address to guthub

(Git bash here named not pasted ctrl + v, is the shift + insert

The setting Select option right in the git bash here border ... queries)

For example url is https://github.com/123/abc.git

After you enter $ git clone https://github.com/123/abc.git will create a new folder in the file abc, all packaged project file to a local folder abc.

If you enter $ git clone https://github.com/123/abc.git myTest abc will change the folder named myTest.

New warehouse

 https://www.cnblogs.com/wupeiqi/p/7295372.html

https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E8%AE%B0%E5%BD%95%E6%AF%8F%E6%AC%A1%E6%9B%B4%E6%96%B0%E5%88%B0%E4%BB%93%E5%BA%93#%E6%A3%80%E6%9F%A5%E5%BD%93%E5%89%8D%E6%96%87%E4%BB%B6%E7%8A%B6%E6%80%81

https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013743256916071d599b3aed534aaab22a0db6c4e07fd0000

Guess you like

Origin www.cnblogs.com/menghu1994/p/9645410.html