Giter VIP home page Giter VIP logo

mypractice's Introduction

MyPractice

1.命令行添加代码 第一次使用:
centos:
yum install git

Ubuntu:
apt-get install git

MacOS: brew install git

git clone https://github.com/kongkongyi/MyPractice.git

更新本地代码 git pull

查看代码状态 git status

后面添加代码,只需要下面三行即可:
git add .
git commit -m "first commit" //第一次提交
git push -u origin master //同步到远程服务器

用命令行操作,要添加ssh的公钥到github里,操作方法

创建SSH key的方法很简单,执行如下命令就可以: ssh-keygen 生成的SSH key文件保存在中~/.ssh/id_rsa.pub

然后用文本编辑工具打开该文件,我用的是cat,所以命令是: cat ~/.ssh/id_rsa.pub

接着拷贝出现在屏幕上的内容,将它粘帖到github帐号管理中的添加SSH key界面中。 打开github帐号管理中的添加SSH key界面的步骤如下:

登录github 点击右上方的Accounting,再点击settings图标 选择 SSH and GPGkeys, 点击 New SSH key 在出现的界面中填写SSH

mypractice's People

Contributors

kongkongyi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.