Code Monkey home page Code Monkey logo

zlzkyuxin.github.io's Introduction

中科云谷gatLab操作手册

  1. 创建派生库(派生就是基于主库分化,类似于主分支和分支) 主库 派生库

  2. 将派生库clone到本地

git clone http://gitlab.zoomlion.com/yuxin/gitlab-demo.git

派生库

  1. 本地库关联主库

git remote add upstream http://gitlab.zoomlion.com/yx/gitlab-demo.git

关联主库

  1. 将主库文件更新到本地(可能有其它同学更新内容合并到主库,所有合并操作前先将主库内容更新一下)

git pull upstream master

  1. 然后再将文件修改后先推送到派生库

git status
git add .
git commit -m '提交内容'
git push origin master

推送到派生库

  1. 在派生库中发起合并申请,并选择需要合并的分支 派生库发起合并申请 派生库发起合并申请 派生库发起合并申请

  2. 等待主库管理员同意合并,同意后则完成合并请求 等待合并 完成合并

  3. 将合并变更信息更新到本地并推送到派生库

git pull upstream master
git push origin master

附图: git常用操作命令

git常用操作命令

zlzkyuxin.github.io's People

Contributors

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