Coder Social home page Coder Social logo

coderroad's Introduction

CoderRoad

git上传:

git add .
git commit -a -m "tips"
git push -u origin main
命令 作用
git status 查看本地库的状态
git add [file] 把工作区的修改添加到暂存区
git add . 添加当前目录中的所有修改到暂存区
git rm --cached [file] 将一个未tracking文件从暂存区撤销修改 (都可以撤销)
git restore --staged [file] 将一个tracking文件从暂存区撤销修改 (都可以撤销)
git restore [file]| 将工作区的修改撤销
git checkout -- [file] 从本地库检出最新文件覆盖工作区的文件(文件还没有提交到暂存区, 否则无效)
git commit -a -m “说明” 用于将tracked file添加到本地库 (只能提交 tracked file)
git commit –m “说明” [file] 将暂存区的修改提交到本地库
ssh-keygen -t rsa -C "[email protected]"

echo "# CoderRoad" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:ybllcodes/CoderRoad.git
git push -u origin main
git remote add origin https://github.com/ybllcodes/CoderRoad.git
git branch -M main
git push -u origin main

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.