Skip to content

Instantly share code, notes, and snippets.



Last active Dec 26, 2020
What would you like to do?
Git Conf
#create a new repository on the command line
# echo "NEW REPO" >>
# git init
# git add
# git commit -m "first commit"
# git branch -M numbnet
# git remote add origin
# git push -u origin numbnet
# …or push an existing repository from the command line
# git remote add origin
# git branch -M numbnet
# git push -u origin numbnet
name =
email =
signingkey = gpg
token =
quotepath = off
autocrlf = false
safecrlf = false
editor = nano
pager = more
excludesfile = ~/.gitignore
helper = store --file ~/.git_repo_credentials
template = /data/data/com.termux/files/home/.gitmessage.txt
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' >>;git init;git add;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:$"]
insteadOf = ssh://
[url "https://api:$"]
insteadOf =
[url "https://git:$"]
insteadOf =
ui = true
[color "diff"]
meta = blue black bold
program = gpg2
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