Giter Site home page Giter Site logo

mobileweb's Introduction

mobileweb

1. 本地建仓远程关联

# 本地新建仓库进行远程关联

$ mkdir mobileweb           # 创建测试目录

$ cd mobileweb/             # 进入测试目录

$ echo "# mobileweb" >> README.md

$ git init                  # 初始化

$ git add README.md         # 添加文件

$ git commit -m "first commit" # 提交并备注信息

# 关联远程库
$ git remote add origin https://github.com/xiaoboliu0602/mobileweb.git
or
$ git remote add origin [email protected]:xiaoboliu0602/mobileweb.git

# 推送 master 分支所有内容
$ git push -u origin master

2. 远程建仓本地克隆

# 远程新建仓库本地克隆

$ git clone [email protected]:xiaoboliu0602/MobiWeb.git

$ cd MobiWeb.git
$ ls
README.md

3. 解决每次远程提交输密码问题

$ git config --global credential.helper store;

$ git push;

根据提示输入一次密码即可

4. 查看当前远程库

$ git remote
origin

$ git remote -v
origin  https://github.com/xiaoboliu0602/mobileweb.git (fetch)
origin  https://github.com/xiaoboliu0602/mobileweb.git (push)

5. 提取远程仓库

$ git fetch origin         # 在本地更新修改

$ git merge origin/master  # 将更新同步到本地

6. 推送到远程仓库

$ git add README.md

$ git commit -m "nth commit"

$ git push origin master

7. 删除远程仓库

$ git remote -v         # 查看当前远程仓库

$ git remote rm [别名]  # 删除对应仓库

mobileweb's People

Contributors

xiaoboliu0602 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.