I downloaded the great GIT package.
The GitCommit works fine.
The GitPush did not work as expected.
I could not solve this, because the documentation is not available for GitPush.
Is there documentation for GitPush?
I added a text copy of my Mathematica code:
(* GitLink of GitLink-2018.07.20.01.paclet *)
Needs["GitLink`"]
(* repo on computer *)
workingRepo=GitOpen[NotebookDirectory[]]
GitProperties[workingRepo]
(* git properties of of working repo:
\[LeftAssociation]"HEAD"\[Rule]"refs/heads/master",
"HeadBranch"[Rule]"master",
"ShallowQ"[Rule]False,
"EmptyQ"[Rule]False,
"UnbornHeadQ"[Rule]False,
"BareQ"[Rule]False,
"GitDirectory"[Rule]"\\WURNET.NL\Homes\boend001\My Documents\2020\1600002031 EU H2020 VACDIVA\.git\",
"WorkingDirectory"[Rule]"\\WURNET.NL\Homes\boend001\My Documents\2020\1600002031 EU H2020 VACDIVA\",
"DetachedHeadQ"[Rule]False,
"Namespace"[Rule]$Failed,
"State"[Rule]"None",
"Conflicts"[Rule]{},
"Remotes"[Rule][LeftAssociation]"origin"[Rule][LeftAssociation]"FetchURL"[Rule]"git@git.wur.nl:wbvr_epi/vacdiva2020.git","PushURL"[Rule]"git@git.wur.nl:wbvr_epi/vacdiva2020.git","FetchRefSpecs"[Rule]{"+refs/heads/:refs/remotes/origin/"},"PushRefSpecs"[Rule]{}[RightAssociation][RightAssociation],
"LocalBranches"[Rule]{"master"},
"RemoteBranches"[Rule]{"origin/master"},
"Tags"[Rule]{}[RightAssociation] *)
!(*
StyleBox[
RowBox[{
RowBox[{
StyleBox[
RowBox[{"(",
StyleBox[
StyleBox["", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}]}]],
StyleBox[
StyleBox["\n", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}],
RowBox[{
RowBox[{
RowBox[{"GitLink`GitPush",
StyleBox[" ", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "does", " ", "not", " ", "provide", " ", "a"}], " ", "<", "local", ">", " ",
RowBox[{"documentation", " ", "page"}]}], ",", " ",
RowBox[{"while", " ", "other", " ", "function", " ", "do"}]}],
StyleBox["\n", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], " ", ")"}], " "}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}])
?"GitLink`*"
(* remote repo *)
remoteRepo="origin";
(* test of proper remote repo : result is TRUE *)
GitRemoteQ[workingRepo,remoteRepo]
GitPush[workingRepo,remoteRepo,"origin/master"]
(* Output Error:
StringForm::sfr: "Item !(*RowBox[{"1"}]) requested in "!(*RowBox[{"\"The git remote failed to connect with the error \\\"1\\\".\""}])" out of range; !(*RowBox[{"0"}]) items available."
""GitPush::noconnect: "The git remote failed to connect with the error "1"."
False
*)
(*
The documentation is not available
What should I change to get the GitPush working?
*)
GitTest.pdf
I downloaded the great GIT package.
The GitCommit works fine.
The GitPush did not work as expected.
I could not solve this, because the documentation is not available for GitPush.
Is there documentation for GitPush?
I added a text copy of my Mathematica code:
(* GitLink of GitLink-2018.07.20.01.paclet *)
Needs["GitLink`"]
(* repo on computer *)
workingRepo=GitOpen[NotebookDirectory[]]
GitProperties[workingRepo]
(* git properties of of working repo:
"HeadBranch"[Rule]"master",
"ShallowQ"[Rule]False,
"EmptyQ"[Rule]False,
"UnbornHeadQ"[Rule]False,
"BareQ"[Rule]False,
"GitDirectory"[Rule]"\\WURNET.NL\Homes\boend001\My Documents\2020\1600002031 EU H2020 VACDIVA\.git\",
"WorkingDirectory"[Rule]"\\WURNET.NL\Homes\boend001\My Documents\2020\1600002031 EU H2020 VACDIVA\",
"DetachedHeadQ"[Rule]False,
"Namespace"[Rule]$Failed,
"State"[Rule]"None",
"Conflicts"[Rule]{},
"Remotes"[Rule][LeftAssociation]"origin"[Rule][LeftAssociation]"FetchURL"[Rule]"git@git.wur.nl:wbvr_epi/vacdiva2020.git","PushURL"[Rule]"git@git.wur.nl:wbvr_epi/vacdiva2020.git","FetchRefSpecs"[Rule]{"+refs/heads/:refs/remotes/origin/"},"PushRefSpecs"[Rule]{}[RightAssociation][RightAssociation],
"LocalBranches"[Rule]{"master"},
"RemoteBranches"[Rule]{"origin/master"},
"Tags"[Rule]{}[RightAssociation] *)
!(*
StyleBox[
RowBox[{
RowBox[{
StyleBox[
RowBox[{"(",
StyleBox[
StyleBox["", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}]}]],
StyleBox[
StyleBox["\n", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}],
RowBox[{
RowBox[{
RowBox[{"GitLink`GitPush",
StyleBox[" ", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], "does", " ", "not", " ", "provide", " ", "a"}], " ", "<", "local", ">", " ",
RowBox[{"documentation", " ", "page"}]}], ",", " ",
RowBox[{"while", " ", "other", " ", "function", " ", "do"}]}],
StyleBox["\n", "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}], " ", ")"}], " "}], "InformationUsageText",
StripOnInput->False,
LineSpacing->{1.5, 1.5, 3.}])
?"GitLink`*"
(* remote repo *)
remoteRepo="origin";
(* test of proper remote repo : result is TRUE *)
GitRemoteQ[workingRepo,remoteRepo]
GitPush[workingRepo,remoteRepo,"origin/master"]
(* Output Error:
StringForm::sfr: "Item !(*RowBox[{"1"}]) requested in "!(*RowBox[{"\"The git remote failed to connect with the error \\\"
1\\\".\""}])" out of range; !(*RowBox[{"0"}]) items available."""GitPush::noconnect: "The git remote failed to connect with the error "
1"."False
*)
(*
The documentation is not available
What should I change to get the GitPush working?
*)
GitTest.pdf