Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

GitLink

Guides

  • Git Interfaces
  • GitLink
  • Git Reference Operations
  • Low Level Git Operations

Symbols

  • GitAdd
  • GitAddRemote
  • GitAheadBehind
  • GitBranchQ
  • GitCheckoutReference
  • GitClone
  • GitClose
  • GitCommit
  • GitCommitQ
  • GitCreateBranch
  • GitCreateTag
  • GitDeleteBranch
  • GitDeleteRemote
  • GitDeleteTag
  • GitExpandTree
  • GitFetch
  • GitInit
  • GitMergeBase
  • GitMerge
  • GitMoveBranch
  • GitObject
  • GitOpen
  • GitProperties
  • GitPull
  • GitRange
  • GitReadBlob
  • GitRemoteQ
  • GitRepo
  • GitRepoQ
  • GitRepos
  • GitReset
  • GitSetUpstreamBranch
  • GitSHA
  • GitSignature
  • GitStatus
  • GitType
  • GitUpstreamBranch
  • GitWriteBlob
  • GitWriteTree
  • ToGitObject
Wolfram`GitLink`
GitClone
​
GitClone
[uri]
clones the git repo pointed to by
uri
into the current directory, using a subdirectory name derived from
uri
.
​
Details

Examples  
(3)
Basic Examples  
(2)
Load the GitLink package:
In[1]:=
Needs["Wolfram`GitLink`"];
​
Clone a Git repository into the current directory:
In[1]:=
repo=
GitClone
["https://github.com/rhennigan/PacletCICD-Examples-Sample.git"]
Out[1]=
H:\Documents\PacletCICD-Examples-Sample\
View the cloned files:
In[2]:=
FileNames[All,repo["WorkingDirectory"]]
Out[2]=
{H:\Documents\PacletCICD-Examples-Sample\Documentation,H:\Documents\PacletCICD-Examples-Sample\.git,H:\Documents\PacletCICD-Examples-Sample\Kernel,H:\Documents\PacletCICD-Examples-Sample\LICENSE,H:\Documents\PacletCICD-Examples-Sample\PacletInfo.wl,H:\Documents\PacletCICD-Examples-Sample\README.md,H:\Documents\PacletCICD-Examples-Sample\ResourceDefinition.nb,H:\Documents\PacletCICD-Examples-Sample\Tests}
Get information about the repository with
GitProperties
:
In[3]:=
GitProperties
[repo]
Out[3]=
HEADrefs/heads/main,HeadBranchmain,ShallowQFalse,EmptyQFalse,UnbornHeadQFalse,BareQFalse,GitDirectoryH:\Documents\PacletCICD-Examples-Sample\.git\,WorkingDirectoryH:\Documents\PacletCICD-Examples-Sample\,DetachedHeadQFalse,Namespace$Failed,StateNone,Conflicts{},RemotesoriginFetchURLhttps://github.com/rhennigan/PacletCICD-Examples-Sample.git,PushURLhttps://github.com/rhennigan/PacletCICD-Examples-Sample.git,FetchRefSpecs{+refs/heads/*:refs/remotes/origin/*},PushRefSpecs{},LocalBranches{main},RemoteBranches{origin/main},Tags{v1.0.0,v1.1.0}
Get a
GitObject
corresponding to the latest commit on the main branch:
In[4]:=
commit=
ToGitObject
[repo,"main"]
Out[4]=
Commit: 8961eb7d…
See information about the commit:
In[5]:=
GitProperties
[commit]
Out[5]=
TypeCommit,Parents
Commit: 63af6ed9…
,
Commit: 8a676cff…
,Tree
Tree: fae5641b…
,AuthorNameRick Hennigan,Emailrichardh@wolfram.com,TimeStamp
Thu 14 Apr 2022 13:38:07GMT-4
,CommitterNameRick Hennigan,Emailrichardh@wolfram.com,TimeStamp
Thu 14 Apr 2022 13:38:07GMT-4
,SHA8961eb7d8f02090cea546055f9c7ddb3415fff78,MessageMerge remote-tracking branch 'origin/main',Repo
H:\Documents\PacletCICD-Examples-Sample\

Close the repository:
In[6]:=
GitClose
[repo]
Scope  
(1)

SeeAlso
GitRepo
 
▪
GitRepos
 
▪
GitOpen
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com