Skip to content

Instantly share code, notes, and snippets.

@numbnet

numbnet/.gitconfig

Last active Dec 26, 2020
Embed
What would you like to do?
Git Conf
##=======================================================
#create a new repository on the command line
# echo "NEW REPO" >> README.md
# git init
# git add README.md
# git commit -m "first commit"
# git branch -M numbnet
# git remote add origin https://github.com/numbnet/TEST.git
# git push -u origin numbnet
##=======================================================
# …or push an existing repository from the command line
# git remote add origin https://github.com/numbnet/TEST.git
# git branch -M numbnet
# git push -u origin numbnet
#
[user]
name =
email =
signingkey = gpg
token =
[core]
quotepath = off
autocrlf = false
safecrlf = false
editor = nano
pager = more
excludesfile = ~/.gitignore
[credential]
helper = store --file ~/.git_repo_credentials
[commit]
template = /data/data/com.termux/files/home/.gitmessage.txt
[alias]
st = status
co = checkout
ci = commit
br = branch
hist = log --pretty=format:\\\"%h %ad | %s%d [%an]\\\" --graph --date=short
type = cat-file -t
dump = cat-file -p
sw = switch
gitstart = "echo 'TEST MY REPO' >> README.md;git init;git add README.md;git commit -m 'first commit';git branch -M numbnet;read GITLINK;git remote add origin $GITLINK;git pull"
sacp = "add .; git commit;git push"
[url "https://ssh:$TOKEN@github.com/"]
insteadOf = ssh://git@github.com/
[url "https://api:$TOKEN@github.com/"]
insteadOf = https://github.com/
[url "https://git:$TOKEN@github.com/"]
insteadOf = git@github.com:
[color]
ui = true
[color "diff"]
meta = blue black bold
[gpg]
program = gpg2
[pull]
rebase = true
ff = only
Subject line (try to keep under 50 characters)
Multi-line description of commit,
feel free to be detailed.
[Ticket: X]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment