GithubHelp home page GithubHelp logo

git-notes's Introduction

Git笔记

常用指令

命令 注解
ssh-keygen -t rsa -C "邮箱地址" 生成SSH证书
cat ~/.ssh/id_rsa.pub 查看SSH证书
gitk 启动图形化界面
git remote add 远程仓库名 远程仓库地址 添加远程仓库地址
git remote rm 远程仓库名 删除远程仓库
git remote set-url 远程仓库名 远程仓库地址 修改远程仓库地址
git checkout 文件名 还原文件到上一个版本

bash常见命令

pwd (Print Working Directory) 查看当前目录
cd (Change Directory) 切换目录
ls (List)查看当前目录下的内容
mkdir (Make Directory)创建目录
touch 创建文件,如 touch index.html
cat 查看全部文件内容,如 cat index.html
rm (remove) 删除文件,删除空文件夹,如 rm index.html , rm Blog
rm -rf 强制删除文件夹,非空文件夹也可以删除
rmdir (Remove Directory) 删除文件夹,只能删除空文件夹
mv (move) 移动文件或重命名,如 mv index.html ./demo/index.html
cp (copy) 复制文件,如 cp index.html ./demo/index.html
head 查看文件前几行,如 head -5 index.html
history 查看操作历史
whoami 查看当前用户

资料文件

Git Gui

参考文献

git-notes's People

Stargazers

 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.