git的使用

快速使用git的步骤:

step 1: 本地初始化

  git init 

  git config --global user.name "yogi"

  git config --global user.email "1499114179@qq.com"

step 2 : 连接远程

  git remote add origin [url]

  git remote -v

step 3: pull到本地

  git pull origin master

step 4: 本地更改

  git add .

  git commit -m "what changes I made"

  git status

step 5: push到远程

  git push origin master


原文地址:https://www.cnblogs.com/yyagrt/p/11444416.html