• Seletor de idioma
Rodrigo Gonçalves

Site pessoal

  • Seletor de idioma
  • Seletor de idioma
GIT,  Programming

How to make an older commit the latest

novembro 22, 2018

How to make a certain commit the latest in a repository (deleting all following commits):

 

git reset –hard CommitId

git push -f origin master

 

 

(from https://stackoverflow.com/questions/40245767/delete-commit-on-gitlab )

By Rodrigo

Categorias

  • CentOS (1)
  • GIT (2)
  • iptables (1)
  • java (1)
  • Linux (4)
  • Matlab (1)
  • PhD (1)
  • Programming (4)
  • spring (2)
  • Windows (1)

Latest posts

  • jun 05, 2020 Reducing WSL-2 Memory Usage
  • dez 31, 2019 RDP server on Kubuntu 18.04
  • jan 03, 2019 Java object to JSON serialization
  • jan 03, 2019 Fix serializations issues in spring-boot REST JSON answers
  • nov 22, 2018 IPTables tips
Savona Theme by Optima Themes