Commit graph

48 commits

Author SHA1 Message Date
kdergachev b450b36036
Added edit/remove functionality to git-ignore (#1258)
* Added edit/remove functionality to git-ignore.

* Minor change to array-string assignment.

* Fixes array handling for remove.

* Suggested fixes (iteration over arguments, pattern removal, editor handling, tmp file location, symlinked gitignore handling).

* Changed pure bash editing of files to an awk script. Some other minor cosmetic changes.

* Updated docs.

* Modified autocomplete to work with new git-ignore

* Added help message to git-ignore.

* Added help flags to git-ignore's man.

* Made $file in eval safe. Should not do the same for editor since then all of the GIT_EDITOR will be treated as command (flags included).

* Typo fixes.
2026-07-14 19:42:02 +08:00
Utsav Sabharwal e92878b81b
feat: add git-delete-gone-branches command (#1239)
* feat: add git-delete-gone-branches command

Adds a new command to delete local branches whose remote-tracking
branch has been deleted (shown as [gone] in git branch -vv).

This is a common need after PRs are merged and remote branches are
cleaned up, leaving stale local branches behind.

Features:
- Deletes all local branches with a gone remote in one command
- --dry-run / -n flag to preview branches before deletion

Closes #1220

* Address PR review feedback on git-delete-gone-branches

- Use git for-each-ref instead of git branch -vv to avoid false
  positives from commit messages containing ': gone]'
- Add interactive confirmation prompt by default; skip with -f/--force
- Add -p/--prune flag to run git fetch --prune before checking
- Add generated man page .1 and .html files

* Use GitHub profile for author contact in man page

* Fix gone-branch detection with nobracket format
2026-06-09 10:36:27 +08:00
罗泽轩 b9e1d88f2c
doc: regenerate git-extras.1 (#1255)
This file has been reset since commit 032090e847

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2026-05-26 12:28:42 +08:00
Andrew Sullivan Cant c63b46a33b
add git-wip and git-unwip (#669)
* Upgrade codespell to v2.4.0

It is a lastet verison, and is needed so that I can use the inline
ignore support in a future commit.

After updating tests/pyproject.toml I ran the following commands:
```
cd tests
poetry lock --no-update
poetry install
```

I also fixed a spelling error in man/git-summary.md, which was not
caught by the old version of codespell. After updating the file I also
updated the related files by running the following commands:

```
cd man
make -C .. man/git-summary.{1,html}
```

* add git-wip and git-unwip

Updated/re-built the documentation with:
```
cd man
make -C .. man/git-unwip.{1,html}
make -C .. man/git-wip.{1,html}
make -C .. man/git-extras.{1,html}
```
2025-05-14 17:05:41 +08:00
oikarinen 2f4b57d52b
feat: add git-continue (#1176)
Some checks are pending
ci / lint (push) Waiting to run
ci / typo (push) Waiting to run
ci / test (push) Waiting to run
ci / build (macos-latest) (push) Waiting to run
ci / build (ubuntu-latest) (push) Waiting to run
* feat: add git-continue

Also refactor `git-abort` to parse action from the called file name.

There's a promise for this in #865 but that was a long time ago.

* fix: add git-continue

address review comments, fix the script, remove unnecessary testpath
import.
2024-11-28 16:50:29 +08:00
wyattscarpenter ffee88a246
Update git-alias.md: add brs to prevent incorrect line behavior (#1161)
* Update git-alias.md: add brs to prevent incorrect line behavior

currently these all appear on one line, in the rendered markdown viewer and also in the man page. That isn't what's wanted. What's wanted is for each to be on its own line, which this change implements, using the strategy I found in git-bulk.

* run make on git-alias
2024-09-19 11:19:48 +08:00
CodeByZach c32869de37
feat: add rename-file command (#1149)
Some checks failed
ci / lint (push) Has been cancelled
ci / typo (push) Has been cancelled
ci / test (push) Has been cancelled
ci / build (macos-latest) (push) Has been cancelled
ci / build (ubuntu-latest) (push) Has been cancelled
2024-08-02 01:19:35 -07:00
Edwin Kofler 8af43892f6
feat: Implement git-get command (#1045)
* feat: Add `git-get` command

* Update Commands.md

Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>

* fix: Use Git config to store value

* improve `git-get` description

* fix: Add `--global` to git invocation

* Enable passing options to `git clone`

* fix: Ordering of checks

---------

Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
2023-08-12 13:49:33 +08:00
Peter Benjamin 02bbdba792 chore: update docs & completions 2022-03-19 20:00:57 -07:00
Tobias Fendin edffba3c2a Updated git-extras manual after review. 2021-12-30 12:41:28 +01:00
Tobias Fendin b2743d785f Consider init.defaultBranch in git_extra_default_branch, changed default
branch to main.
2021-12-29 13:57:12 +01:00
overengineer 86bb1a6764 Added git-magic command 2021-10-08 07:05:50 +03:00
Przemek Kitszel b8e58ee9ba Add git-abort
New subcommand just calls git $op --abort, where $op is current git operation, like rebase
2021-07-05 23:43:39 +02:00
Vladimir Jimenez 910242c92b
Add delete-squashed-branches command 2021-05-24 00:13:57 -07:00
罗泽轩 e6caa931a5
Merge pull request #882 from vt-alt/git-utimes
git-utimes: Change files modification time to their last commit date
2020-11-29 11:40:12 +08:00
Vitaly Chikunov aa174b3905 git-utimes: Change files modification time to their last commit date
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2020-11-08 14:04:41 +03:00
thomas menzel 35d544b8c6 squash help: ran make man/git-squash.{html,1} 2020-10-12 07:45:57 +02:00
spacewander 964663f1a4 change: migrate default branch
Close #877.
2020-09-23 16:19:41 +08:00
spacewander e116406ff1 git-back: removed 2020-08-28 22:23:41 +08:00
spacewander 23fcac8c4f break change: remove docs and other stuff of git-feature's alias 2020-05-31 11:03:11 +08:00
Rémy HUBSCHER 2a5c08aaf8
Fix checks. 2020-03-19 16:59:09 +01:00
Mark Pitman 362a0c29ae Add git-browse command
Handles git@server and https://server remotes.
Allows specification of the remote to open
Closes #666
2020-03-15 01:40:09 -07:00
Brice Dutheil 80cd52701e
Fixes #770: Adds git-brv 2020-01-15 10:46:19 +01:00
Paul Wise d90b02ce22
Regenerate docs
Changes-by: make man/git-paste.{1,html}
2019-09-10 10:40:22 +08:00
jacobherrington 66288296b2 Add git coauthor command
This adds a feature to add additional authors to the previous commit,
this feature is supported by GitHub and GitLab and based on the format
should be self-evident to anyone reading the commit message.
2019-08-23 20:21:43 -05:00
spacewander d4de567ca7 git-line-summary: should be the history
Also remove some trailing lines after the output.
2019-07-23 22:13:29 +08:00
Brian Murrell 7d3ab83ec3 implements remote pref for create-branch 2019-06-21 06:20:16 -07:00
Paul Wise 8b58e570cb
Documentation rebuild: git-extras.* updates
Re-orders git-clear/git-clear-soft and git-lock/git-locked due to
differences between the sorting by make and shell.
2018-05-09 17:16:52 +08:00
spacewander f5d99bcac9 doc: update git-extras index 2018-02-15 22:57:56 +08:00
Étienne BERSAC d4c7581835
Add git-mr to checkout GitLab merge requests 2017-06-16 11:11:50 +02:00
Nicolai Skogheim e31f61ba34 spelling: {a,an} archive. Fix #609 2016-12-26 19:22:55 +01:00
Damien Tardy-Panis 9b3e25f407 Add git reauthor (#548)
Based on https://help.github.com/articles/changing-author-info/
2016-08-02 19:41:56 +02:00
Nimit Kalra 91ca995edc Update all man pages. 2015-12-27 11:26:38 -06:00
CJ fea722e7e9 cd man && ./manning-up.sh && git diff --stat | grep ' 2 ' | awk '{print }' | xargs git checkout -- 2015-06-27 17:13:43 +08:00
CJ 7d3e55a84a run pre-release ./manning-up.sh 2015-04-27 15:24:13 +08:00
CJ 62dd4a2258 Updated documentation for git-scp and slight feature change 2015-04-27 15:05:17 +08:00
Paul Schreiber 00050b91da add show-merged-branches and show-unmerged-branches 2015-03-18 09:33:02 -04:00
spacewander 0a3bc99d9a correct the '-m' argument for grep. Then regenralize git-extra
'-m' option is supported both in GNU grep and in BSD grep
GNU grep: <http://linux.die.net/man/1/grep>
BSD grep:
<https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/grep.1.html>
2014-11-06 21:33:14 +08:00
spacewander 76e0dfef97 replace visionmedia/git-extras to tj/git-extras
Although Github reserves the 'visionmedia' user space(a visit to there
will be redirected to 'tj'), it's better to
rename the links from visionmedia/git-extras to tj/git-extras
2014-11-06 17:12:01 +08:00
Tom Vincent 17cc7b0e57 Replace http with https for man Github urls 2012-09-25 14:13:53 +08:00
nickl- b7fe4c123a The complete index of all available documents. 2012-07-22 22:27:37 +02:00
nickl- 815db8b89e help ronn make hyperlinks.
With hte manuals described in index.txt ronn will create hyperlinks of the (1) referenced words.
See http://rtomayko.github.com/ronn/ronn.1#LINK-INDEXES.
git-extras.html will now be browsable, actually anywhere else you use the referenced names ie. git-extras(1) as defined in index.txt will generate as hyperlinks in html while keeping the text versions rendereder similarly than they used to using exactly the same procedures as already documented.
2012-07-21 12:25:58 +02:00
Leila Muhtasib e08ace3b46 Updated main documenation to include git-info 2012-06-16 16:16:34 -04:00
Leila Muhtasib 313d128887 Updated git-extras to include git-effort.
Regenerated git-extras to reflect git-effort being added, and git-pull-request being removed.
Created Readme.md file on how to generate documenation.
2012-06-12 17:15:00 -04:00
TJ Holowaychuk 54f3b65b68 Removed git-pull-request(1)
not very useful since you have to lookup the number, in which case
you might as well just copy/paste the url and git am
2012-02-09 08:09:20 -08:00
Tj Holowaychuk 5d267749a6 docs 2011-03-29 08:58:12 -07:00
Tj Holowaychuk b48ee68b8d docs 2011-03-27 09:06:08 -07:00
Tj Holowaychuk 9e5b89842b Added git-extras, removed git-extras-version and git-extras-update 2011-03-27 09:01:40 -07:00