windows批量导入git项目脚本示范(三种方式,亲测可用)
最编程
2024-08-14 09:30:30
...
我们使用微服务这些来设计项目时会产生很多项目,而新人刚来要拉取所有项目时,只能一个个拉取,很麻烦浪费时间,因此使用脚本一次性拉取是比较好的,一次编写脚本,随时可以快速再次拉取所有项目,更加简便。
无权限验证
前两行是建立一个你项目的文件夹(yourprojectname),然后进去克隆项目,不需要的话可以直接删除
然后给后面每一个git clone后面的项目地址替换为你要的
mkdir yourprojectname
cd yourprojectname
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
将上面代码保存为clone.bat并直接双击打开即可运行
使用本地git里的账号密码SSH鉴权
前两行是建立一个你项目的文件夹(yourprojectname),然后进去克隆项目,不需要的话可以直接删除
然后给后面每一个git clone后面的项目地址替换为你要的
你本地的ssh密钥要设置到你的账户里去
mkdir yourprojectname
cd yourprojectname
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
git clone git@github.com:HumorChen/idea2021.3-use-for-free.git
将上面代码保存为clone.bat并直接双击打开即可运行
使用个人密钥鉴权走http方式克隆
前两行是建立一个你项目的文件夹(yourprojectname),然后进去克隆项目,不需要的话可以直接删除
然后给后面每一个git clone后面的项目地址替换为你要的
你要在你的git账户里创建一个私人密钥
下面的oauth2:%1@你可以最后再全局替换一下,先直接按http链接写好所有的git clone语句,最后直接走全部替换github.com为oauth2:%1@github.com即可完成对密钥的插入了。
mkdir yourprojectname
cd yourprojectname
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
git clone https://oauth2:%1@github.com/HumorChen/idea2021.3-use-for-free.git
将上面代码保存为clone.bat,并在当前目录打开cmd命令行,执行一下命令
# yourtoken是你的私人密钥
clone.bat yourtoken
上一篇: ios开源投屏软件 :苹果CMS投屏插件的iOS开源版本
下一篇: 创维电视广告被路由器域名屏蔽