Command line instructions
命令行指令
You can also upload existing files from your computer using the instructions below.
您也可以使用下面的说明从您的计算机上载现有的文件。
Git global setup
Git 全局设置
git config --global user.name "xxx" git config --global user.email "xxxx"
Create a new repository
创建一个新的库
git clone git@git.kemean.net:kangqingwen/uni_project.git cd uni_project touch README.md git add README.md git commit -m "add README" git push -u origin master
Push an existing folder
推送现有文件夹
cd existing_folder git init git remote add origin git@git.kemean.net:kangqingwen/uni_project.git git add . git commit -m "Initial commit" git push -u origin master
Push an existing Git repository
推送一个现有的 Git 存储库
cd existing_repo git remote rename origin old-origin git remote add origin git@git.kemean.net:kangqingwen/uni_project.git git push -u origin --all git push -u origin --tags