git常用命令
1. 简历github仓库https://github.com/fulq1234/a.git 2. 建立本地仓库。我在本地新建一个文件夹gitgit,打开文件夹,右键选择git bash here git init 3 .在gitgit厦门新建一个文件夹adddd, git add . 4. git仓库迁移,git remote更改源 git remote #不带参数,列出已经存在的远程分支 git remote -v #(-v是–verbose 的简写,取首字母)列出详细信息,在每一个名字后面列出其远程url git remote add [shortname] [url] #添加远程仓库 $ git remote -v $ git remote add origin https://github.com/fulq1234/a.git $ git remote -v origin https://github.com/fulq1234/a.git (fetch) origin https://github.com/fulq1234/a.git (push) $ git remote add origin2 https://github.com/fulq1234/a.git $ git remote -v origin https://github.com/fulq1234/a