关于本地git的补充

之前说到很多git权限都要进行相应的配置,这里做一些补充说明。

        大家都可以在自己本地目录里找到相应的文件,打开方式即Win+R 输入%userprofile%

.gitconfig

        很多操作都有快捷输入,只要在.config 文件里补充以下代码,即可实现。

[alias]
	co = checkout
	br = branch
	ci = commit 
	st = status
	unstage = reset HEAD --
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

.ssh

        这个在第一次的博客里有所提及。

        找到这个文件。

        如果想要连接自己的仓库的话,就可以将'''id_rsa.pub'''里的内容放到仓库的setting里配置新的ssh密钥

原文地址:https://www.cnblogs.com/TieJiang13/p/12690611.html