Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't work some git aliases #18

Open
roman-dubrovsky opened this issue Oct 13, 2016 · 8 comments
Open

Don't work some git aliases #18

roman-dubrovsky opened this issue Oct 13, 2016 · 8 comments
Assignees
Labels

Comments

@roman-dubrovsky
Copy link
Contributor

 $ gbclean
function>
$ gbdone
Already on 'master'
Your branch is up-to-date with 'origin/master'.
git: 'up' is not a git command. See 'git --help'.
@roman-dubrovsky
Copy link
Contributor Author

$ gbdone
git: 'bclean' is not a git command. See 'git --help'

@AleksSenkou
Copy link
Contributor

@roman-dubrovsky do you use those aliases? As I noticed, there are no such commands for git(bclean and up)

@AleksSenkou
Copy link
Contributor

@roman-dubrovsky @Proghat I'd remove:

alias gwipe="git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard"
alias gup="git pull --rebase --prune $@ && git submodule update --init --recursive"
alias gbclean="f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
alias gbdone="f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"

from aliases at all if there are no objections

@roman-dubrovsky
Copy link
Contributor Author

@AleksSenkou no, I'm using it

@dzhlobo
Copy link
Member

dzhlobo commented Oct 31, 2017

@roman-dubrovsky, I think we should move gwipe, gup, gbclean, and gbdone to functions. Like @AleksSenkou did in #22.

@AleksSenkou, just train yourself to use them. I use them as well.

@TheBlackArroVV
Copy link
Contributor

What should gbclean do? Like, I can fix it, but I can't realize what is expected result

@roman-dubrovsky
Copy link
Contributor Author

@TheBlackArroVV this function just remove all branches from local git repo which have been removed from remote git repo

@ohmycthulhu
Copy link

@roman-dubrovsky , is the problem still relevant?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants