Git学习笔记与bug记录

注意:

Win7上版本号为Git for Windows 2.16.1(2)有以下这个bug

在Git Bash上执行pull时报错:

error: cannot spawn git: Function not implemented

目前解决方法是退回到上一个版本。
 
1. 安装git
2. git --version 查看版本信息,确认安装成功
3. cd到当前文件夹下
4. git init 初始化本地git仓库
5. 配置用户信息
6. git config --global user.name ''
7. git config --global user.email ''
8. git add <file> 添加文件(index.html,*.html,.)
9. git rm --cached <file> 删除文件
10. git status 查看状态
11. git commit -m "message" 提交
12. git push 推送到仓库
13. git pull 从远程仓库拉取数据
14. git clone github中复制的url 从远程仓库拷贝数据
15. 在.gitignore文件中写入要忽略的文件的路径
16. git branch 分支名 创建分支
17. git checkout 分支名 切换到分支(默认初始分支为master)
18. git merge 分支名 合并分支
19. 登陆github -> 点击+按钮 -> New repository -> 给新仓库起一个名字并创建
20. 复制"...or push an existing repository from the command line"中的代码,即上传到远程仓库

转载于:https://www.cnblogs.com/crisis66/p/8433261.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值