//:Ideas
Made={*}
Possible
All Insights
Let's talk
Current Article:
Help: Reset GIT branch to a specific commit

Help: Reset GIT branch to a specific commit

Posted on
August 30, 2016
, By
admin
Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

  • Test text
  • Test text
  • Test text

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

“Reset GIT branch to a specific commit” is the first topic we would like to address in the Help section. Since many of us find ourselves in a situation when we want to reset the master branch to a specific commit of the master- or some other branch, we'll take some time to write a short guide on how this can be done in a few steps.RESET BRANCH TO A SPECIFIC COMMITgit reset –hard 87a9789447846c6ff3275f93589fbab3c7b801ec (commit hash that we want to reset the branch to)git checkout -b xx (we check out a fictive branch, which will become master)git branch -m master old-master (rename current master to something else)git branch -m xx master (rename fictive branch to master)git branch -d –force old-master (delete old master – not needed anymore)git merge -s ours origin/master (merge master branches, but prefer local data)make some changes to test git.git commit -m ‘test’ (if needed do git add . first)git push –set-upstream origin master (set local master branch to track origin master branch)git pushgit pullWe have also made a package that automates this process via artisan: https://github.com/ivanciric/artisan-git-toolsEveryone is invited to contribute to join the development of various commands that further facilitate our work.