Last active
June 27, 2023 16:26
-
-
Save numbnet/aaa346fe197e962db3965624e1c6b608 to your computer and use it in GitHub Desktop.
Git Conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##======================================================= | |
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject line (try to keep under 50 characters) | |
Multi-line description of commit, | |
feel free to be detailed. | |
[Ticket: X] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment