git&github入门

作者: 能吃饭也能吃苦1236 | 来源:发表于2018-04-16 19:40 被阅读0次

创建github仓库

1.打开github网站:网址
2.注册并登录;
3.选中New repository,创建一个新仓库,如图:

1.png
2.png

配置git&github

  • 配置git
git --version /*确定git是否安装成功*/
git config --global user.name Snow-pear  /*配置用户名,要改成github的用户名*/
git config --global user.email 958427071@qq.com  /*配置邮箱地址*/
git config --global push.default simple  /*配置提交模式*/
  • 生成ssh key
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"  /*邮箱地址修改为github注册时的邮箱地址*/
3.png
cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub | clip        # window
cat ~/.ssh/id_rsa.pub | pbcopy  # mac

git操作入门

cd ***  /*进入工作目录*/
git clone *** /*clone远程仓库到本地,***为复制的github地址 */
git status  /*查看仓库状态*/
git push  /*同步本地仓库的更改到远程*/
npm install  /*初始化基础库*/
git add ***  /*添加到***文件*/
git commit -m ***  /*添加描述,并且必须描述*/

less入门

less语法文档

执行git命令出现的问题

  • git clone出现fatal:destination path 'fe-homework' already exists and is not an empty directory,如图:


    4.png
fatal:destination path 'fe-homework' already exists and is not an empty directory. /*意思是你当前的目录下,有个同名的目录。git clone 一次后,下次就不用clone了。*/
  • npm start出现listen EADDRINUSE,如图:


    5.png
listen EADDRINUSE /*表示地址被占用*/

解决方法:
1.找出程序在占用的这个端口号:

netstat -ano|findstr "35729 /*找出程序在占用的这个端口号*/
6.png

2.去掉占用该端口的程序:

tskill 11632  /*去掉占用该端口的程序*/

3.重新运行npm run start。

提问

在使用绝对定位时,如果css中有很多绝对定位,那么absolute和relative是怎么相互识别的呢?

相关文章

  • git&github入门

    创建github仓库 1.打开github网站:网址2.注册并登录;3.选中New repository,创建一个...

  • 上传本地项目到github

    Create a local repository and upload it to git&github 1. ...

  • Git&Github的初始化操作1

    本文为转载,查看原文请参考末尾链接根据Git&Github的初始化操作1,本人在Git&Github的初始化操作2...

  • GitHub使用技巧

    Git&GitHub秘籍 https://github.com/tiimgreen/github-cheat-sh...

  • Git&GitHub

    path命令 告诉命令行去哪找命令 命令行的使用规则 命令名 子命令 -p --param --parm2=xxx...

  • Git&GitHub

    基本命令行 什么是命令行 GUI(Graphical user interface) Cli(Command-li...

  • Git&GitHub

    本文章著作权归小圆和饥人谷所有,转载须说明来源 Github Githhub账号 Linux命令 在学习使用git...

  • Git&GitHub

    Git 是什么 Git是一个版本管理控制系统(缩写VCS),它可以在任何时间点,将文档的状态作为更新记录保存起来,...

  • Git&Github笔记

    都是自己看视频学习资料总结的,欢迎大家浏览指正托管中心维护远程库 内网:可以自己搭建一个GitLab服务器 外网:...

  • Git&Github使用

    视频:https://youtu.be/Mgp7yDilzfU Win10下安裝與設定Git 注册Github,创...

网友评论

    本文标题:git&github入门

    本文链接:https://www.haomeiwen.com/subject/vkyjkftx.html