Skip to content
Ganganga

Ganganga

Technologies & Software Solutions

Ganganga

close
  • Home
  • About Us
  • Portfolio
  • Blog
  • Contact Us

Tag: Git

Delete commits history with git commands

Posted on June 8, 2021August 16, 2022 by Admin

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this: # Check out to a temporary branch:git checkout –orphan

Posted in: GitTagged: Git

The “fatal: refusing to merge unrelated histories” Git error

Posted on October 7, 2020August 16, 2022 by Admin

The “fatal: refusing to merge unrelated histories” Git error occurs when two unrelated projects are merged (i.e., projects that are not aware of each other’s existence and have mismatching commit histories). The error is resolved by toggling the allow-unrelated-histories switch.

Posted in: GitTagged: Git, Git Error, Git Merge

Recent Posts

  • Sonarqube Analysis for Java Maven Project
  • OWASP Top 10
  • OWASP Vulnerability Checks With Maven
  • Uncomplicated Firewall (ufw) on Ubuntu
  • Delete commits history with git commands

Categories

  • Apache2
  • Cassandra
  • Codeigniter
  • Firewall
  • Git
  • Java
  • Kafka
  • Laravel
  • OWASP
  • PHP
  • Ubuntu

Recent Comments

    Copyright © 2025 Ganganga. All rights reserved. Theme Suffice by ThemeGrill. Powered by: WordPress.

    Ganganga

    close
    • Home
    • About Us
    • Portfolio
    • Blog
    • Contact Us