from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Revision as of 13:12, 10 May 2023 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Git commands

Usage: git <command> [ <parameters> ]

command process description
add repo creation 2 updates the "staged" area using content found in the working tree (can be specified)
branch manages repository branches
clone repo creation 1b copies a repository from somewhere else
commit repo creation 6 commits changes currently staged
config usage config
diff repo creation 5 shows difference between current directory contents and what you have staged
fetch fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them.
init repo creation 1a initializes a new repository; does not add anything
log returns information about commits
merge joins two or more branches together
pull copying from incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD.
push copying to updates remote refs using local refs, while sending objects necessary to complete the given refs
rebase forward-port local commits to the updated upstream head
remote copying manage aliases for remote repositories
reset resets current HEAD to the specified state
rm repo creation 3 removes files from staging and by default also from the filesystem
stash saves local modifications, reverts the working directory to match HEAD commit
status repo creation 4 shows status of current repository
submodule manages modules
tag creates an alias for a particular revision