[Git] Git 使用技巧整理
1 批量删除指定文件名的所有文件
可以执行如下文件,其中 ‘*.c’ 是要删除文件的通配符,请自行修改:
Shell
find . -name '*.c' > filesToRemove.txt
for i in `cat filesToRemove.txt`; do git rm $i; done
12
find . -name '*.c' > filesToRemove.txtfor i in...
[Git] Git 使用常见问题
1、错误:Write failed: Broken pipe
有时在执行 pull 或者 push 操作时,会出现如下错误:
packet_write_wait: Connection to 192.30.255.113 port 22: Broken pipe
如果出现这一问题,请编辑 /etc/ssh/ssh_config 文件:
Shell
sudo vim /etc/ssh/ssh_config
1
sudo vim /etc/ssh/ssh_config在文件中添加如下配置:
Shell
Host *
ServerAliveInterval 60
12
Host *ServerAliveInterval 60...