Skip to content

Instantly share code, notes, and snippets.

@xmsi
Last active January 16, 2025 07:16
Show Gist options
  • Save xmsi/927827dbd731496542ab52b35ef78a1d to your computer and use it in GitHub Desktop.
Save xmsi/927827dbd731496542ab52b35ef78a1d to your computer and use it in GitHub Desktop.
Git helper

Undo pushed Merge request

  1. git log --oneline see to which commit you need to jump
  2. git reset --hard branch_hash
  3. git push origin feature/DATRUECALL-180 --force force push branch to remote origin

It is better to pull from origin before doing massive changes

Server certificate verification failed CAfile:

git config --global http.sslVerify false - turn on ssl verification

Undo all before commit

git clean -nfd to check
git clean -fd to remove
git reset -- . not force(will not delete new files)

Pull Fetch Rebase

Git pull — связка последующих команд git fetch и git merge.
Включить изменения из удаленного репозитория в локальную копию проекта путем слияния (merge)
Наложить локальные коммиты поверх обновленной удаленной ветки (rebase)
Источник

Git turn off permission track

git config core.fileMode false

What is github reabse

From Philomatics youtube channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment