修改git远程仓库地址
修改git远程仓库地址
创建新的远程仓库(空仓库,不勾选Initialize repository with a README),并创建一个临时文件。如tmp.txt.
https://xxx.com/eric.zhang/b-xxx.git
推送现有文件夹
cd existing_folder
git init
git remote add origin https://gitlab.famesmart.com/eric.zhang/m-python-event-ftp4car.git
git add .
git commit -m "Initial commit"
git push -u origin master
推送现有的 Git 仓库
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.famesmart.com/eric.zhang/m-python-event-ftp4car.git
git push -u origin --all
git push -u origin --tags