Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extra-git

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-git

Common utility commands for Git repositories.

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
116
decreased by-65.58%
Maintainers
1
Weekly downloads
 
Created
Source

Common utility commands for Git repositories.
📦 NPM, 🖥️ Shell, 📜 Files, 📘 Wiki.

This is an extension of "git-extras" and "git-extra-commands", including some additional commonly used git tools; cpush, apush, and xclone. You can install this with npm install -g extra-git.sh.

Stability: Experimental.


# Commit current changes and push (inc. submodules)
$ egit cpush "message"

# Amend current changes and push (inc. submodules)
$ egit apush

# Clone repository to local (inc. submodules)
$ egit xclone openstack/openstack




# Do a hard reset and delete all untracked files
$ egit clear


# List authors
$ egit authors --list
$ egit authors --list --no-email

# TJ Holowaychuk <tj@vision-media.ca>
# hemanth.hm <hemanth.hm@gmail.com>
# Jonhnny Weslley <jw@jonhnnyweslley.net>
# nickl- <github@jigsoft.co.za>
# Leila Muhtasib <muhtasib@gmail.com>


# Merge commits from src-branch into the current branch as a single commit
$ egit squash fixed-cursor-styling
$ egit squash fixed-cursor-styling "Fixed cursor styling"
$ egit squash 95b7c52
$ egit squash HEAD~3
$ egit squash HEAD~3 "Work on a feature"




# Current branch name in automation-friendly format
$ egit branch-name
# main

# Delete all local branches that have been merged into HEAD
$ egit delete-local-merged

# Show files being ignored by git in the repo
$ egit ignored


Index

CommandAction
abortAbort current git operation.
add-submoduleAdd submodule to repository.
add-username-remoteAdds a remote for the current repository for the given GitHu ...
ageA git-blame viewer, written using PyGTK.
ahead-of-masterShow commits that haven't made it to master yet.
aliasDefine, search and show aliases.
amend-pushAmend current changes and push (inc. submodules).
amend-push-submodulesAmend current changes and push all submodules.
apushAmend current changes and push (inc. submodules).
apush-submodulesAmend current changes and push all submodules.
archive-fileExport the current HEAD of the git repository to an archive.
atticDisplays a list of deleted files in your repository. The out ...
authorsGenerate authors report.
authorsGenerate authors report.
basenameGet name of repository from URL.
big-fileShow files in the repository larger than a threshold size.
branch-namePrints the current branch name in automation-friendly format.
branch-rebaserKicks off an interactive rebase of all the commits on your b ...
branches-that-touchShows which branches touch files under a path that are remot ...
browseView the web page for the current repository.
brvList branches sorted by their last commit date.
bulkRun git commands on multiple repositories.
change-authorChange one author/email in the history to another.
change-logTransform git log output into a complete Changelog for proje ...
changelogGenerate a changelog report.
changesSymlink to git-authors. List authors in the repository in de ...
checkout-by-dateLets you checkout several files at once at the version speci ...
checkout-commitUses fzf(https//github.com/junegunn/fzf) to checkout a commi ...
checkout-default-branchChecks out the default branch of the origin remote so you do ...
checkout-prCheck out a PR locally.
checkout-previewUses fzf(https//github.com/junegunn/fzf) to checkout a branc ...
children-ofShows the children of a given git commit.
churnShow which files are getting changed most often in the repos ...
clearRigorously clean up a repository.
clear-softSoft clean up a repository.
clone-init-submodulesClone repository to local (inc. submodules).
clone-subsetUses git clone and git filter-branch to remove from the clon ...
coauthorAdd a co-author to the last commit.
commaAdds and commits a file in one command.
commit-browserUses fzf(https//github.com/junegunn/fzf) to browse commit hi ...
commit-pushCommit current changes and push (inc. submodules).
commit-push-submodulesCommit current changes and push all submodules.
commits-sinceShow commit logs since some date.
conflictsShow files with conflicts.
contribShow user's contributions.
copy-branch-nameCopy the current branch's name to the clipboard (macOS Only).
countShow commit count.
cpCopy a file keeping its history.
cpushCommit current changes and push (inc. submodules).
cpush-submodulesCommit current changes and push all submodules.
create-branchCreate branches.
creditQuicker way to assign credit to another author on the latest ...
current-branchPrints the name of the current branch with no odd characters ...
cut-branchCreate a new branch pointed at HEAD and reset the curren ...
default-branchGet default branch (local) of repository.
delete-branchDelete branches.
delete-dangling-commitsClean up dangling commits that are not on any branch.
delete-local-mergedDelete all local branches that have been merged into HEAD.
delete-merged-branchesDelete merged branches.
delete-merged-branchesDelete merged branches.
delete-squashed-and-merged-branchesPurges all branches that have been squashed and merged to a ...
delete-squashed-branchesDelete branches that were squashed.
delete-submoduleDelete submodules.
delete-tagDelete tags.
delete-tagDelete tags.
deltaLists changed files.
diff-lastShow the last change made to a file in the repository.
divergenceShows differences between local branch and its tracking branch.
edit-conflictsEdit the files that are marked as conflicted during a merge/ ...
effortShow effort statistics on file(s).
featureCreate/Merge feature branch.
fetch-prsGet all Pull Request branches as local remote branches by re ...
fetch-pull-requestsFetch pull requests from GitHub so you can git checkout pull ...
filesList the files different between the current branch and REVI ...
find-dirty.
flushCompact your repository by dropping all reflogs, stashes, an ...
force-cloneoverwrite local repositories with clone.
force-mtimesSets modification times of all files in the repository their ...
forestPrints a text-based tree visualisation of your repository. R ...
forkFork a repo on github.
fresh-branchCreate fresh branches.
fullurlGet full URL of repository from partial.
functionlogAllows you to get a git log of a particular function, not a ...
fzf-addUse fzf(https//github.com/junegunn/fzf) to select files to a ...
fzf-log-browserUse fzf(https//github.com/junegunn/fzf) to browse the reposi ...
fzf-pickaxe-browserUse fzf(https//github.com/junegunn/fzf) to display a git log ...
fzf-reflog-browserUse fzf(https//github.com/junegunn/fzf) to browse the reposi ...
gh-pagesCreate the GitHub Pages branch.
gitTyping git git foo will make git do a git foo instead of com ...
github-open.
gitlab-mrOpen a merge request on GitLab.
graftMerge and destroy a given branch.
guiltcalculate change between two revisions.
helpPrint usage details of a command.
history-graphPretty git log, single line per commit, with branch graphing.
ignoreAdd .gitignore patterns.
ignore-ioGet sample gitignore file.
ignoredShow files being ignored by git in the repository.
improved-mergeSophisticated git merge with integrated CI check and automat ...
incomingShow commits in the tracking branch that are not in the loca ...
infoReturns information on current repository.
init-submodulesInitialize all submodules.
linesGives you a list of author names with the number of lines la ...
local-commitsList local commits.
lockLock a file excluded from version control.
lockedls files that have been locked.
ls-branch-filesList files changed between a specifed branch and the current ...
ls-object-refsFind references to an object with SHA1 in refs, commits, and ...
magicAutomate add/commit/push routines.
maildiffA simple git command to email diff in color to reviewer/ co- ...
maxpackCompress a repository's pack files as much as possible.
merge-intoMerge one branch into another.
merge-repoMerge two repo histories.
missingShow commits missing from another branch.
move-commitsgit move-commits num-commits correct-branch moves the last n ...
mrChecks out a merge request locally.
nameGet name of repository from URL.
neckShow commits from the HEAD until the first branching point. ...
nukeNukes a branch locally and on the origin remote.
object-deflateDeflate an loose object file and write to standard output.
obliteraterewrite past commits to remove some files.
oldest-common-ancestorFinds the oldest common ancestor commit between two branches.
origin-headPrints the name of the origin remote's default branch. Not e ...
outgoingShow commits that are on the local branch that have not been ...
overwrittenAggregates git blame information about original owners of li ...
pasteSend patches to pastebin for chat conversations.
pie-ifygit pie-ify pattern replacement.
plotrepoUses dot to draw a graph of the repository.
prChecks out a pull request locally.
promotePromotes a local topic branch to a remote tracking branch of ...
prune-branchesDeletes each fully merged branch after prompting for confirm ...
pruneallPrune branches from specified remotes, or all remotes when n ...
psykorebaseRebase a branch with a merge commit.
publishgit publish remote remote-branch.
pull-requestCreate pull request for GitHub project.
purge-from-historyPermanently delete files or folders from your git repository.
pylintRuns pylint on any .py files modified or added in the git st ...
rank-contributorsRummages through the changelog and orders contributors by th ...
reauthorRewrite history to change author's identity.
rebase-authorsAdds authorship info to interactive git rebase output.
rebase-patchRebases a patch.
rebase-theirsResolve rebase conflicts by favoring 'theirs' version.
recentShows information about most recent commit on all local bran ...
recently-checkedout-branchesShows timestamp and name of recently checked-out branches in ...
ref-recentShows the date, branch name, commit hash, and commit subject ...
relShows the relationship between the current branch and ref. ...
relatedShow other files that often get changed in commits that touc ...
releaseCommit, tag and push changes to the repository.
remote-default-branchShows the default branch for a specified remote, defaults to ...
rename-branchrename local branch and push to remote.
rename-branchesRename multiple branches that start with a given name.
rename-remoteRename a remote.
rename-tagRename a tag.
replgit read-eval-print-loop.
reset-fileReset one file.
reset-with-fireHard reset the working directory, then zap any files not kno ...
restore-mtimeChange mtime of files based on commit date of last change.
reupLike git pull but show a short and sexy log of changes after ...
rm-deleted-from-repoRemoves files you deleted with rm from the repository for you.
rootshow path of root.
root-directoryPrints the path to the root of the git repository you're in.
rootsShow the root commits.
run-command-on-revisionsRuns a given command over a range of git revisions.
scpCopy files to SSH compatible git-remote.
sedreplace patterns in git-controlled files.
setupSet up a git repository.
shamendAmends your staged changes as a fixup (keeping the pre-exist ...
show-merged-branchesShow merged branches.
show-overwrittenAggregates git blame information about the original owners o ...
show-treeshow branch tree of commit history.
show-unmerged-branchesShow unmerged branches.
shrink-repoShrinks your clone of a git repository.
spSimple push, single short command to commit, and push. Use - ...
squashsquash N last changes up to a ref'ed commit.
srUse fzf to switch to a different git ref.
stampStamp the last commit message.
standupRecall the commit history.
statsDisplays stats for the files different between the current b ...
submodule-rmAllows you to remove a submodule easily with git submodule-r ...
summaryShow repository summary.
switch-branchMake it easier to switch to a branch by a substring of its n ...
syncSync local branch with remote branch.
tag-and-signCreate and sign a new tag.
tag-diffShow the differences between local tags and ones on the remo ...
thanksList the contributors to a repository in descending commit o ...
touchTouch and add file to the index.
trackSets up your branch to track a remote branch. Assumes you me ...
trailShow all branching points in the repository's git history so ...
undeleteUndeletes a file.
undoRemove latest commits.
undoRemove latest commits.
undo-pushUndoes your last push to branch 1 of origin.
unlockUnlock a file excluded from version control.
unpushedShow which commits have not been pushed to the tracking bran ...
unreleasedShows git commits since the last tagged version.
upLike git pull but show a short and sexy log of changes after ...
upstream-syncFetches upstream/yourforkname and rebases it into your loc ...
urlGet full URL of repository from partial.
utimesChange files modification time to their last commit date.
what-the-hell-just-happenedShow what just happened.
when-mergedFind when a commit was merged into one or more branches.
whereShows where a particular commit falls between releases.
whoamiShows what username email you have configured for the repos ...
winnerShows what authors have made the most commits, both by numbe ...
wordinessShows how wordy people's commit messages are. Useful for sha ...
work-in-progressStarts an interactive rebase of all the commits you haven't ...
wtfgit-wtf displays the state of your repository in a readable, ...
xcloneClone repository to local (inc. submodules).


References



Keywords

FAQs

Package last updated on 12 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc