mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
4 Commits
2eaa7c530a
...
f490d5fd26
Author | SHA1 | Date |
---|---|---|
Mohit Mayank | f490d5fd26 | |
dependabot[bot] | 6e9cda3d30 | |
Mohit Mayank | 2889838f44 | |
Mohit Mayank | f8c09ca13a |
|
@ -3,5 +3,5 @@ charset-normalizer==3.4.1
|
|||
idna==3.10
|
||||
PyYAML==6.0.2
|
||||
requests==2.32.3
|
||||
semver==3.0.2
|
||||
semver==3.0.3
|
||||
urllib3==2.3.0
|
||||
|
|
|
@ -265,6 +265,7 @@ receive further support.
|
|||
| `git_develop_branch` | Returns the name of the “development” branch: `dev`, `devel`, `development` if they exist, `develop` otherwise. |
|
||||
| `git_main_branch` | Returns the name of the main branch: `main` if it exists, `master` otherwise. |
|
||||
| `grename <old> <new>` | Renames branch `<old>` to `<new>`, including on the origin remote. |
|
||||
| `gac` | Stages and commits an untracked file. |
|
||||
| `gbda` | Deletes all merged branches |
|
||||
| `gbds` | Deletes all squash-merged branches (**Note: performance degrades with number of branches**) |
|
||||
|
||||
|
|
|
@ -115,6 +115,22 @@ alias gamscp='git am --show-current-patch'
|
|||
alias gams='git am --skip'
|
||||
alias gap='git apply'
|
||||
alias gapt='git apply --3way'
|
||||
|
||||
# Adds and commits an untracked file.
|
||||
function gac() {
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: gac <file> <commit message>"
|
||||
return 1
|
||||
fi
|
||||
|
||||
local file="$1"
|
||||
shift
|
||||
local message="$@"
|
||||
|
||||
git add "$file"
|
||||
git commit -m "$message"
|
||||
}
|
||||
|
||||
alias gbs='git bisect'
|
||||
alias gbsb='git bisect bad'
|
||||
alias gbsg='git bisect good'
|
||||
|
|
Loading…
Reference in New Issue