使用git和github管理自己的代码

git 基础
http://blog.csdn.net/u010367506/article/details/25838485

git进阶(有用)
https://my.oschina.net/bxxfighting/blog/378196

1. 右击目录,出现的菜单中有Git Bash Here
2. git init
git remote add origin [email protected]:bxxfighting/buxingxing.git

//同步
git pull [email protected]:bxxfighting/buxingxing.git

//添加
git add .    (这后面是一个英文的句号)

//提交
git commit –m “这里写下你自己的记录本次提交内容的信息”

//上传
git push [email protected]:bxxfighting/buxingxing.git

配置步骤如下
1. 在windows下安装Git
2.  双击图标”Git Bash”
3. ssh-keygen –t rsa –C “邮箱地址”
4. 打开id_rsa.pub, 复制里面的内容
5. github--setting ---ssh key--add new ssh, 粘贴进去
6. 配置自己的邮箱、
    git config –global user.name “用户名”
    git config –global user.email “邮箱”


发布了51 篇原创文章 · 获赞 1 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/panlongbao_918/article/details/56291058