Skip to content

fuchaoyan/demo3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

git教程

在本地创建项目:

  1. mkdir demo 建文件
  2. cd demo 进入demo
  3. git init

在github创建repository:

  • 本地与远程同步:
  1. git remote add origin https://github.com/tingyoung/projectdemo1.git(链接)

本地提交以及推到远程:

  1. touch a (新建一个文件a)
  2. git add . (add 与 . 之间有空格)
  3. git status
  4. git commit -asm "提交的文件备注"
  5. git push -u origin master

SSH 公钥

  1. cd ~/.ssh
  2. ssh-keygen -t rsa -C "915314265@qq.com"
  3. cat id_rsa.pub

分支

  1. git checkout -b branch1
  2. git branch
  3. git push -u origin branch1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published