Skip to content

Instantly share code, notes, and snippets.

View giorgichi's full-sized avatar

Giorgi Chighladze giorgichi

  • Iowa State University
  • Ames, IA
View GitHub Profile
@giorgichi
giorgichi / Reduce Repo Size
Last active February 21, 2025 17:21
Clean Git History
# Reduce Repository Size
This document describes how to remove old files from Git history to reduce repository size
To remove sensative info (like passwords) follow this [document](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository).
Check size of the repo by running
`git count-objects -vH`
@giorgichi
giorgichi / GIT.md
Last active January 15, 2022 04:55
Git Commands

GIT Command Line

Commits

  • git commit -am "Add comment here"
    add and commit all changed files in one code by using -am flag

  • git config --global alias.ac "commit -am"
    create new custom commands called ac that adds all changed files and commits (commit -am)

// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class