Python 在Matlab代码中克隆GitHub存储库
我在服务器上运行代码,所以我想在主文件的MATLAB命令行中克隆github repo。我在Python中这样做:Python 在Matlab代码中克隆GitHub存储库,python,matlab,github,git-clone,Python,Matlab,Github,Git Clone,我在服务器上运行代码,所以我想在主文件的MATLAB命令行中克隆github repo。我在Python中这样做: user = input('enter GitHub username: ') password = getpass('password: ') os.environ['git_user'] = user + ':' + password !git clone https://$git_user@github.com/xxx/mydir
user = input('enter GitHub username: ')
password = getpass('password: ')
os.environ['git_user'] = user + ':' + password
!git clone https://$git_user@github.com/xxx/mydir
sys.path.append('mydir')
然后从mydir那里导入文件夹。有MATLAB版本的吗?谢谢