git配置
[b]初始化配置信息[/b]
或者
或者
会生成
[b]commit默认信息模板[/b]
修改文件不push
or
[b]初始化配置信息[/b]
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git branch --set-upstream master origin/master
或者
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
或者
git config --global branch.master.remote origin
git config --global branch.master.merge refs/heads/master
会生成
[branch "master"]
remote = origin
merge = refs/heads/master
[b]commit默认信息模板[/b]
git config --global commit.template $HOME/.gitmessage.txt #自行创建用户目录下的.gitmessage.txt
修改文件不push
git update-index --assume-unchanged dirname
or
git update-index --assume-unchanged filename