Giter Site home page Giter Site logo

test's Introduction

test

##学习如何使用github

(windows : GitHub + Atom 更方便 )

###1、如何创建github仓库

  • 选择 New repository 按钮
  • 添加 Repository name(及仓库名)
  • 添加 Description(及仓库介绍)
  • 选择 Public (pravite 是私有的,付费用户才可以用)
  • 选择 Initialize this repository with a READM (初始化仓库时自动创建一个READM文件)
  • 选择 Create repository 按钮 (完成仓库的创建)

###2、在主分支下创建一个子目录

  • 选择 create new file
  • 在主分支后输入子目录名,以 “/” 结尾
  • 这样就可以在主分支下创建一个子目录了
  • 以此类推,就可以在任何目录下创建子目录

在 linux 下使用 github

(Debian/ubuntu)

###1、安装 git

$ sudo apt-get install git

###2、配置 git

$ git config --global user.name "your_github_name"
$ git config --global user.email "your_github_email"
$ mkdir github/
$ cd github/

###3、为 github 账号添加 ssh keys

$ ssh-keygen -t rsa -C "your_github_email"
$ cd ~/.ssh/id_rsa/
$ cat id_rsa.pub

把 cat 的内容复制 ,粘贴到 github.com 的 SSH keys 中 ,并测试 ssh -T [email protected]

###4、终端下 git 的一些操作

$ mkdir github/
$ git init
$ git clone http://github.com/your_github_name/your_github_repositorie_name.git
$

###5、linux 下的一次简单的提交

$ git clone https://github.com/tux116/linux.git
$ cd linux/
$ git pull //从github上拉取最新的版本
$ vim 日记
今天是x月x日
$ git status //查看git状态
$ git add 日记 //添加文件
$ git status //查看git状态
$ git commit //进行提交
$ git stauts //查看git状态
$ git push //把本地的版本推送到github上

###6、

test's People

Contributors

skylens 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.