@jswork/ushell-module-git 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.sh CHANGED
@@ -6,6 +6,7 @@ ROOT_PATH=$(dirname $BASH_SOURCE)
6
6
  # source $ROOT_PATH/modules/02-git-flow.sh;
7
7
  source $ROOT_PATH/modules/07-git-rebase.sh
8
8
  source $ROOT_PATH/modules/11-lazygit.sh
9
+ source $ROOT_PATH/modules/14-gr.sh
9
10
 
10
11
  ## git base:
11
12
  alias gl='git pull'
@@ -45,7 +46,7 @@ alias gfa='git fetch --all'
45
46
  alias gfp='git fetch --all --prune'
46
47
 
47
48
  ## git revert:
48
- alias gr='git checkout -f'
49
+ # alias gr='git checkout -f'
49
50
  alias grf='git clean -fd'
50
51
  alias grr='git checkout -f && git clean -fd'
51
52
  alias gck='git checkout '
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ gr() {
4
+ git checkout -f -- "$@"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/ushell-module-git",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {