Add Git config
Signed-off-by: PandaCoderPL <git@pandacoderpl.anonaddy.me>
This commit is contained in:
parent
e7e96eb378
commit
cc9b104599
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.3.0] - 2021-11-08
|
||||
### Added
|
||||
- [Git Config](home/.config/git/config)
|
||||
|
||||
## [1.2.6] - 2021-11-08
|
||||
### Changed
|
||||
- Short to long options in [Bash Config](home/.bashrc)
|
||||
|
|
|
@ -17,6 +17,7 @@ Repository with my dotfiles.
|
|||
|
||||
* [Bash](http://www.gnu.org/software/bash/) - [
|
||||
.bashrc](home/.bashrc)
|
||||
* [Git](https://git-scm.com/) - [config](home/.config/git/config)
|
||||
* [Termux](https://termux.com/) - [termux.properties](home/.termux/termux.properties)
|
||||
* [Vim](https://www.vim.org/) - [.vimrc](home/.vimrc)
|
||||
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
[alias]
|
||||
a = add
|
||||
ba = branch
|
||||
bach = "!f() { \
|
||||
git ba \"$1\" && \
|
||||
git ch \"$1\"; \
|
||||
}; f"
|
||||
bd = ba -d
|
||||
bfd = ba -D
|
||||
ch = checkout
|
||||
cl = clone
|
||||
cl1 = cl --depth=1
|
||||
co = commit -sm
|
||||
coa = "!f() { \
|
||||
local message=\"$1\"; \
|
||||
local author=\"$2\"; \
|
||||
git co \"${message}\" --author \"${author}\"; \
|
||||
}; f"
|
||||
cota = "!f() { \
|
||||
local version=\"v$(cat VERSION)\"; \
|
||||
git co \"$1\" && \
|
||||
git ta \"${version}\"; \
|
||||
}; f"
|
||||
fu = "!f() { \
|
||||
git fetch upstream && \
|
||||
git ch master && \
|
||||
git rebase upstream/master; \
|
||||
}; f"
|
||||
fup = fu && p
|
||||
p = push
|
||||
pa = push --all
|
||||
pt = push --tags
|
||||
pat = pa && pt
|
||||
r = remote
|
||||
ra = r add
|
||||
rau = r set-url --add
|
||||
rl = r -v
|
||||
rr = r remove
|
||||
s = status
|
||||
t = tag
|
||||
ta = "!f() { \
|
||||
git t -am \"$1\" \"$1\"; \
|
||||
}; f"
|
||||
td = t -d
|
||||
tl = t -l
|
||||
[commit]
|
||||
gpgSign = true
|
||||
[core]
|
||||
editor = vim
|
||||
pager = less
|
||||
[include]
|
||||
path = ~/.config/git/config-secret
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[http]
|
||||
proxy = socks5h://127.0.0.1:9050
|
||||
[tag]
|
||||
forceSignAnnotated = true
|
||||
gpgSign = true
|
Loading…
Reference in New Issue