Git仓库初始化 2019-01-15 程序员 程序员 评论Create a new repository123456git clone git@github.com:gaoyoubo/hexo-client.gitcd user-center-transfertouch README.mdgit add README.mdgit commit -m "add README"git push -u origin masterExisting folder123456cd existing_foldergit initgit remote add origin git@github.com:gaoyoubo/hexo-client.gitgit add .git commit -m "Initial commit"git push -u origin masterExisting Git repository12345cd existing_repogit remote rename origin old-origingit remote add origin git@github.com:gaoyoubo/hexo-client.gitgit push -u origin --allgit push -u origin --tags