General operation of git

Too many advantages

  • Very convenient management code
  • Many sites can be a key Register Login
  • user's guidance

Search-related, the official also tutorials

Paste detailed tutorial

https://blog.csdn.net/youzhouliu/article/details/78952453

Basic instructions

cd		切换路径
ls		当前路径下的所有文件
rm		删除		-rf表示全部强制删除
status	状态
add		提交
push	推
pull	拉

Probably describe the process

From the local library to upload your own remote repository

  1. Download, install, check the version number
  2. Directly open source files downloaded bash.exe
  3. First Configuration
$ git config --global user.name"Frandaaaa"
$ git config --global user.email "[email protected]"
  1. Which folder you want to look at cd
  2. After identify the library file you want to get the clip, appear to be controllable management (master)
$ git init
  1. First add a remote library
$ git remote add origin https://github.com/Frandaaaa/Work-java.git
  1. I want to upload the file packed into the designated folder inside the library
  2. Add All
$ git add .
  1. Submission
$ git commit -m "这里是描述,网页上面会显示"
  1. A good idea to pull it
$ git pull --rebase origin master
  1. If the error occurs at this time
 error setting certificate verify locations

carried out

$ git config --system http.sslverify false

  1. Continue to pull it, and finally upload all
$ git push -u origin master

You may want to log on the graphical interface. If you want to log in, log on later repeat steps 8,9,10

fork to get the code to support the project maintainer

  1. Leader description link
https://seriouszyx.github.io/2019/03/08/%E4%BD%BF%E7%94%A8Forking%E5%B7%A5%E4%BD%9C%E6%B5%81%E6%8F%90%E4%BA%A4%E4%BD%9C%E4%B8%9A.html
  1. Cloned from a remote repository: direct cloning own library
git clone https://www.github.com/Frandaaaa/(库的名称).git
  1. Switch to clone folder
cd /
  1. Get items from the library at the link (pointer manipulation)
git remote add upstream https://github.com/url
  1. Create a new branch locally, to submit
git checkout -b cq

-b for the first time, used to initialize

  1. After switching the content check status, submitted to the cache, the first push pull
git status
git add .
git commit -m "content"
git push origin cq

Finally pushed to submit their branches above, the graphical interface directly to the pull request, there is a form you can fill out

Guess you like

Origin blog.csdn.net/weixin_43645287/article/details/85602428