0

我正在尝试使用 grit 进行推送。但是我无法弄清楚要在下面的 rmpush.push 命令中传递的所有参数。我已经使用 git remote add 创建了一个远程别名,并且它工作正常。

location = 'D:\GritRepo'
repo = Grit::Repo.init(location)
rmpush = Grit::Git.new(location+'\.git')
# this works fine
repo.remote_add("remoterep","https://github.com/ahmadosama/GritRepo.git")
# need help here
rmpush.Push({:repo=>'remoterep', :remote=>'master'})
4

0 回答 0