一 git过滤不提交的内容[.gitignore] 文件
# Created by .ignore support plugin (hsz.mobi)
### Example user template template
### Example user template
# IntelliJ project files
.idea
*.iml
out
gen
.gitignore
.idea/
*.pyc
*.swp
二 git 设置别名 git alias(全局设置)
1)windows 路径:C:\Users\登录名(Administrator)\.gitconfig
2)Linux路经:找到 .gitconfig 文件(就在home文件夹下)
[user]
name = taoyy
email = jiabaoyu114@qq.com
[merge]
tool = studio64
[mergetool "studio64"]
cmd = studio64.exe merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
keepbackup = false
[diff]
tool = studio64
[difftool "studio64"]
cmd = studio64.exe diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
trustExitCode = true
keepbackup = false
[alias]
ch = checkou
st = status
staust = 'gitst'
cf = config
ck = checkout
ft = fetch
fh = fetch
br = branch
brv = branch --v
geturl = config --get remote.origin.url
bs = bisect
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
cfg = config --global
cfga = config --global alias.
pull = pl
pl = pull
cm = commit -c HEAD
ps = push
lsr = ls-remote --heads
udc = reset HEAD~
ftg = fetch --tags
am = commit -amend
cmd = commit --amend
rsh = reset HEAD~
cmi = commit --interactive -c HEAD --reset-author
i = --interactive
rss = reset --soft
rmc = rm --cached
cp = cherry-pick
cpx = cherry-pick -x
bl = blame
gk = gitk
ltn = ls-tree -r HEAD~ --name-only
lt = ls-tree -r HEAD~ --name-only
ltng = ls-tree -r HEAD~ --name-only |grep
lgd = log -p --full-diff
bcm = "branch -a --contains "
brc = branch -a --contains
tagc = tag --contains
[i18n]
commitencoding = utf-8
logoutputencoding = utf-8
[core]
quotepath = false
[gui]
encoding = utf-8
[i18n "commit"]
encoding = utf-8
[http]
[credential]
helper = manager