GithubHelp home page GithubHelp logo

借助Github托管项目

仓库Repository:你的项目;每个项目对应一个仓库,多个开源项目则有多个项目,

收藏Star:收藏项目人数;方便下次查看

Fork:复制克隆项目,会自动生成该仓库,其独立存在,forked from XXX

PullRequest 想把自己的改进合并到原有项目里面的请求

watch:关注项目,当有更新可收到通知


仓库管理

创建文件


Git的安装和使用(管理GitHub托管项目代码)

检验是否安装成功:点击桌面右键出现Git GUI和Git Bash

设置用户名:git config --global user.name "xxxxx"

设置邮箱:git config --global user.email "[email protected]"

查看设置:git config --list

命令:git init 创建Git仓库(是隐藏文件夹形式的)

向仓库中添加文件流程

Image text

touch a1.php 创建文件

git status 查询文件状态

git add a1.php 添加到暂存区

git commit -m 'add a1.php' 将文件从暂存区提交到仓库


vi a1.php 修改文件 git status 查看状态 git add a1.php 添加到暂存区

git commit -m '第一次通过git修改文件并提交到仓库'


rm -rf a1.php 删除文件

git rm a1.php 从Git中删除文件

git commit -m '第一次通过Git删除仓库文件'


Git管理远程仓库

Image text

Git克隆操作

目的:将远程仓库(github对应的项目)复制到本地

代码:git clone 仓库地址https://

touch a1.php 创建文件

git status 查询文件状态

git add a1.php 添加到暂存区

git commit -m '第二次通过git提交到仓库' 将文件从暂存区提交到仓库

将本地仓库同步到git远程仓库中 :git push


Github Pages搭建网站

个人站点 访问 https://youcoding98.github.io

搭建步骤

1 创建个人站点 -> 新建仓库(注:仓库名必须是【用户名.github.io】)

2 在仓库下新建index.html的文件即可

Project Pages 项目站点 https://youcoding98.github.io/仓库名

搭建步骤

1进入项目主页,点击settings

2在settings页面,点击【Launch antomatic page generator】来自动生成主题页面

3新建站点基础信息设置

4选择主题生成网页

youcoding98's Projects

algowiki icon algowiki

总结算法刷题套路,在线阅读:

cs-notes icon cs-notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计、Java、Python、C++

fastvideo icon fastvideo

基于Android平台的移动流媒体播放器的开发

fortranlib icon fortranlib

Collection of personal scientific routines in Fortran :book:

fucking-algorithm icon fucking-algorithm

手把手撕LeetCode题目,扒各种算法套路的裤子。English version supported! Crack LeetCode, not only how, but also why.

gts icon gts

Golang的抽象语法树

javaguide icon javaguide

【Java学习+面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。

json-fortran-example icon json-fortran-example

An example program that shows how to use the json-fortran library along with a custom derived type.

youcoding98.github.io icon youcoding98.github.io

:sparkles: Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll

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.