Giter Site home page Giter Site logo

Comments (1)

oldratlee avatar oldratlee commented on April 28, 2024

原来的命令解释说明如下:

# 拉取远程的develop分支,并且当前分支(本地分支some-feature)合并上远程分支develop
git pull origin develop

git checkout develop
# 本地分支some-feature合并上some-feature
#【注意】已经这个分支已经有远程的develop修改了,所以本地develop无需再做远程pull操作
git merge some-feature 
git push

平时自己的操作和你一样,一般不会在pull操作后面加参数,说实话,我也没有花时间去弄明白pull后面参数的的作用。

我的操作序列一般会是:(效果是等价的)

git checkout develop
git pull # 更新本地develop分支
git checkout some-feature
git merge develop #合并本地分支develop【上面更新过是最新了】

git checkout develop
git merge some-feature
git push

好处是参数的使用方式是常规的,结果是,一条命令变成4条。。。

了解后,我会使用指南中给的操作方式,更高效些。

from translations.

Related Issues (20)

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.