我想设置* .cmd或* .ps1脚本,它在特定的目录下执行git pull
。
我在Windows上使用Github,而存储库托管在Github上。使用Github for windows的Git pull脚本
所以我需要一个脚本,执行两个步骤。
- 进入到一个目录下(我的本地库)
- 执行git的拉动。
我该如何做到这一点?
在此先感谢。
我想设置* .cmd或* .ps1脚本,它在特定的目录下执行git pull
。
我在Windows上使用Github,而存储库托管在Github上。使用Github for windows的Git pull脚本
所以我需要一个脚本,执行两个步骤。
我该如何做到这一点?
在此先感谢。
如果该目录中没有git文件夹,你将如何提取?你可以用git clone url
pushd somepath
git pull
我找到了解决方案替代git pull
:
找到C:\Users\UMCS-Supervisor\AppData\Local\GitHub\PortableGit_<GUID>
然后进行XYZ.cmd
然后在XYZ.cmd编辑为以下
cd "C:\Directory\To\your\Git\folder"
git pull https://Username:[email protected]/Username/RepoName.git
必须有.git在那个目录中...... 我想要的是通过脚本 – Rui
从远程拉出来,它神奇地必须在那里或它将如何在那里? – 4c74356b41
我已经克隆....? – Rui