Git command line tips and tricks

🗽 Git stop tracking files

git update-index --assume-unchanged [path]

👽 Git add untracked files

git update-indx -h
git update-index --no-assume-unchanged [path]

🚜 Undoing a git push

git push -f origin last_known_good_commit:branch_name

🏀 Nuke last commit and never see it again

git reset --hard HEAD~1

Reference:

results matching ""

    No results matching ""