@jswork/ushell-module-git 1.0.53 → 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,12 +6,14 @@ 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'
12
13
  alias glo='git pull origin '
13
14
  alias glom='git pull origin main'
14
15
  alias gp='git push'
16
+ alias gpgh='git push github';
15
17
 
16
18
  # git logs
17
19
  alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@@ -44,7 +46,7 @@ alias gfa='git fetch --all'
44
46
  alias gfp='git fetch --all --prune'
45
47
 
46
48
  ## git revert:
47
- alias gr='git checkout -f'
49
+ # alias gr='git checkout -f'
48
50
  alias grf='git clean -fd'
49
51
  alias grr='git checkout -f && git clean -fd'
50
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.53",
3
+ "version": "1.0.55",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {