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`
GitAdd
​
GitAdd
[repo,path]
add any changes found in
path
to the index for
repo
.
​
​
GitAdd
[repo,{
path
1
,
path
2
,…}]
add all changes found at each of
path
i
to the index.
​
​
GitAdd
[repo,
All
]
add all changes found in the working tree of
repo
to the index.
​
​
GitAdd
[path]
automatically determine which repo
path
belongs to and add changes to that repo.
​
Details
▪
GitAdd
is the inverse operation to
GitReset
.
▪
When a
repo
is given and
path
is relative, then it will be relative to the root of
repo
. When
repo
is not specified, paths will be relative to the current directory.
▪
path
may refer to a directory or filename. If
path
refers to a directory, then the contents of that directory are added.
path
can be given as a glob pattern.
▪
GitAdd
may add new files or changes to existing files. If no changes or new files are found, then
GitAdd
will do nothing and return without error.
▪
GitAdd
returns a list of the files which it adds to the index. If no files were added,
GitAdd
returns an empty list.
▪
If an added file is marked as having a conflict as the result of an incomplete merge or rebase,
GitAdd
clears the conflict
▪
If a file has been deleted from the working tree, then
GitAdd
[repo,"removedfile"]
will add the change that deletes the file to the index.
▪
GitAdd
ignores changes to files which are specified in a
.gitignore
file. To add a change or new file even if the filename is found in a
.gitignore
file, use
GitAdd
[repo,path,"Force"
True
]
.
▪
path
may be an absolute pathname or a path relative to the current working directory. If
path
points to a directory or file outside of the working tree,
GitAdd
will generate an error message.
SeeAlso
GitReset
 
▪
GitCommit
 
▪
GitStatus
 
▪
GitCheckoutFiles
 
▪
GitMerge
 
▪
GitRebase
 
▪
GitCherryPick
""

© 2025 Wolfram. All rights reserved.

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