git Power Push

    0
    46

    Rebasing is a frequent job for anybody utilizing git. We generally use rebasing to department our code from the final adjustments and even simply to drop commits from a department.

    Oftentimes when making an attempt to push after a rebase, you will see one thing like the next:

    trace: Updates had been rejected as a result of the tip of your present department is behind
    trace: its distant counterpart. Combine the distant adjustments (e.g.
    trace: 'git pull ...') earlier than pushing once more.
    trace: See the 'Notice about fast-forwards' in 'git push --help' for particulars.
    

    Generally builders will use the --force or -f flags throughout a push to power pushing code adjustments:

    git push origin my-branch --force
    # or
    git push origin my-branch -f
    

    I used to be lately shocked to seek out out that you may additionally prefix the department identify with + to power a push:

    git push origin +my-branch
    

    The + syntax is fascinating however would not appear intuitive so it is not a apply I might use, however that does not imply you should not!

    • Link Nudging with CSS3 Animations

      One of many extra common and easy results I’ve featured on this weblog over the previous yr has been linking nudging.  I’ve created this impact with three flavors of JavaScript:  MooTools, jQuery, and even the Dojo Toolkit.  Fortunately CSS3 (virtually) permits us to ditch…

    • Chris Coyier’s Favorite CodePen Demos II

      Hey everybody! Earlier than we get began, I simply wish to say it is rattling arduous to choose this few favorites on CodePen. Not as a result of, as a co-founder of CodePen, I really feel like a dad choosing which child he likes greatest (RUDE). However as a result of there’s simply so…


    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here