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`
GitReset
​
GitReset
[repo,path]
resets the index entry for
path
to the current HEAD version.
​
​
GitReset
[repo,{
path
1
,
path
2
,…}]
resets the index entries for
path
i
.
​
​
GitReset
[repo,
All
]
resets all index entries in
repo
.
​
​
GitReset
[repo,path,ref]
resets the index to use the version of
path
found in the commit
ref
.
​
​
GitReset
[path]
automatically determine which repo
path
belongs to and reset changes in that repo.
​
Details

Examples  
(1)
Properties & Relations  
(1)
Calling
GitReset
on every single file in a repo can be done more conveniently using
GitResetRepo
:
In[1]:=
GitStatus
[r]​​GitResetRepo[r,"HEAD","Hard"];​​
GitStatus
[r]
SeeAlso
GitAdd
 
▪
GitResetRepo
 
▪
GitCommit
 
▪
GitStatus
""

© 2025 Wolfram. All rights reserved.

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