Git Product home page Git Product logo

git-study

git init # 初始化

git add README.md # 新建仓库需要

git add . # 添加所有文件

git commit -m "first commit"

git branch -M main # 将分支变成main,取代传统的master

本地仓库与远程github关联

git remote add origin https://github.com/Sydeboy/git-study.git

远程有readme.md,先拉一下

git pull --rebase origin main

git push -u origin main # 第一次提交需要u

将代码上传github的默认分支

git --version git config --global init.defaultBranch main

git reset . # 取消git add .操作

git pull # 远程拉取到本地

sydeboy's Projects

blog icon blog

👨‍💻 Personal coding blog.

tech-study-js icon tech-study-js

学习强国油猴插件 A flexible and light userscript for xuexiqiangguo based on tampermonkey plugin

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.