2015-09-15-git配置
https://help.github.com/articles/set-up-git/
git上传是忽略一些文件
在每个git的项目中有一个.gitignore
文件,将忽略的文件或文件夹输入即可。
例如,用emacs编辑文件时总会出现~
文件,加入下面这句即可。
*~
ssh
1.check for ssh keys
ls -al ~/.ssh
if your computer has some ssh keys,then go to step3.
2.generate a new ssh key
“
ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
3.Add your key to ssh-agent
eval “$(ssh-agent -s)”
ssh-add ~/.ssh/id_rsa
4.Add your ssh key to your account
your key save in **~/.ssh/id_rsa.pub** .
更新本地仓库
git fetch origin master
git merge origin/master
版权声明:本文为博主原创文章,未经博主允许不得转载。