github使用指导

1.创建readme.md文件,初始化本地路径

zelin@2018:~$ echo "# python-" >> README.md
zelin@2018:~$ git init
#返回值
初始化空的 Git 仓库于 /home/zelin/.git/
zelin@2018:~$ git add README.md


2.配置用户名及邮箱

zelin@2018:~$ git config --global user.name "hgycxd"

zelin@2018:~$ git config --global user.email "121246784@qq.com"

3.提交连接

zelin@2018:~$ git commit -m 'hgycxd'
#返回值
[master (根提交) 2cb5eb4] hgycxd
 1 file changed, 1 insertion(+)
 create mode 100644 README.md

4.创建成功,刷新界面即可上传文件

zelin@2018:~$ git remote add hgycxd https://github.com/hgycxd/python-.git
zelin@2018:~$ git push -u hgycxd master
#返回值:
Username for 'https://github.com': hgycxd
Password for 'https://hgycxd@github.com': 
对象计数中: 3, 完成.
写入对象中: 100% (3/3), 211 bytes | 0 bytes/s, 完成.
Total 3 (delta 0), reused 0 (delta 0)
remote: 
remote: Create a pull request for 'master' on GitHub by visiting:
remote:      https://github.com/hgycxd/python-/pull/new/master
remote: 
To https://github.com/hgycxd/python-.git
 * [new branch]      master -> master
分支 master 设置为跟踪来自 hgycxd 的远程分支 master。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值