关于Git

1、配置

git config --globaluser.name"You Name"

git config --global [email protected]

ssh-keygen -C'[email protected]' -t rsa


2、技巧

git remote prune origin      删除远程分支不存在,但本地存在的分支

git rm file path —cached      从版本跟踪中删除一个文件


3、设置此文件没有变化

git update-index --assume-unchanged path

你可能感兴趣的:(关于Git)