方式一:克隆仓库
git clone https://codeup.aliyun.com/62cd41370065edd3d51bf9a9/FirstKnow_File.git cd FirstKnow_File touch README.md git add README.md git commit -m "add README" git push -u origin master
方式二:已有文件夹或仓库
cd existing_folder git init git remote add origin https://codeup.aliyun.com/62cd41370065edd3d51bf9a9/FirstKnow_File.git git add . git commit git push -u origin master
方式三:导入代码库
git clone --bare https://git.example.com/your/project.git your_path cd your_path git remote set-url origin https://codeup.aliyun.com/62cd41370065edd3d51bf9a9/FirstKnow_File.git git push --mirror