赞
踩
如项目地址为 https://xxx/xxx/test.git
则使用token克隆的命令如下:
git clone -b main https://{user}:{token}@xxx/xxx/test.git
执行一系列命令 把已有代码的目录 push到 test2项目中,分支为br2。
* cd existing_folder
* git init
* git config user.name ‘{username}’
* git config user.email ‘{email}’’
* git checkout -b ‘{br2}’
* git add .
* git commit -m ‘br2’
* git push -u http://{user}:{token}@xxx/xxx/test2.git br2
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。