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.

  • 0.0.32
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
134
decreased by-84.93%
Maintainers
1
Weekly downloads
 
Created
Source

Common utility commands for Git repositories.
:package: NPM, :smiley_cat: GitHub, :scroll: Files, :blue_book: 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.

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
$ git squash fixed-cursor-styling
$ git squash fixed-cursor-styling "Fixed cursor styling"
$ git squash 95b7c52
$ git squash HEAD~3
$ git 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
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.
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 repo. The output is ...
authorsGenerate authors report.
big-fileShow files in the repo 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 ...
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.
changesList authors in the repo in descending commit-count order.
checkout-prCheck out a PR locally.
churnShow which files are getting changed most often in the repos ...
clearRigorously clean up a repository.
clear-softSoft clean up a repository.
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.
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, mainly useful in auto ...
cut-branchCreate a new branch pointed at HEAD and reset the curren ...
delete-branchDelete branches.
delete-local-mergedDelete all local branches that have been merged into HEAD.
delete-merged-branchesDelete merged branches.
delete-merged-branchesDelete merged branches.
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-pull-requestsFetch pull requests from github so you can git checkout pull ...
find-dirty.
flushCompact your reposistory by dropping all reflogs, stashes, a ...
force-cloneoverwrite local repositories with clone.
force-mtimesSets mtimes of all files in the reprository their last chang ...
forestPrints a text-based tree visualisation of your repository. R ...
forkFork a repo on github.
fresh-branchCreate fresh branches.
functionlogAllows you to get a log of a particular function, not a file.
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 graphign.
ignoreAdd .gitignore patterns.
ignore-ioGet sample gitignore file.
ignoredShow files being ignored by git in the repo.
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-object-refsFind references to an object with SHA1 in refs, commits, and ...
maildiffA simple git command to email diff in color to reviewer/ co- ...
maxpackCompress a repo'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.
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.
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.
rm-deleted-from-repoRemoves files you deleted with rm from the repo 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 repo.
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.
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.
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 repo's Git history so you c ...
undeleteUndeletes a file.
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.
up.
upstream-syncFetches upstream/yourforkname and rebases it into your loc ...
urlGet full URL of repository.
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 repo ...
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 2021

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