Skip to content

Instantly share code, notes, and snippets.

View agatawitkowska's full-sized avatar

Agata Witkowska agatawitkowska

View GitHub Profile
@agatawitkowska
agatawitkowska / Remove-commit
Created July 1, 2018 14:47
Removing wrong commit in a GitHub repo through bash-Git
#Removing commit in GitHub repository through git in the command line
#1. Open git through command line or bash
#2. After setting a username and commit email address connect to Github's reposirory:
git clone <repository's url with .git>
cd <repository's name>
git rebase -i HEAD~1 #for editing last commit
#now a text editor will open with commit's details and possible actions, exchange "pick" in the first line with the desired command, save file, and close file. Rest is done automatically
#3. Push the commit to GitHub:
@agatawitkowska
agatawitkowska / svg2png.bat
Created June 23, 2018 12:57
Convert all SVG files in the folder to PNG
FOR %%A IN (*.svg) DO inkscape --without-gui --file="%%A" --export-dpi=300 --export-png="%%A.png"