Skip to content

Instantly share code, notes, and snippets.

View YellowPig-zp's full-sized avatar

Zipeng Qin YellowPig-zp

View GitHub Profile
@YellowPig-zp
YellowPig-zp / fix_github_https_repo.sh
Created April 27, 2021 07:58 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@YellowPig-zp
YellowPig-zp / .gitignore
Created August 5, 2019 20:54 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #