Skip to content

Instantly share code, notes, and snippets.


Trevor Sullivan pcgeek86

View GitHub Profile
pcgeek86 /
Last active Apr 21, 2022 — forked from random-robbie/
Install Go Lang on Raspberry Pi
cd $HOME
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
source ~/.bashrc
pcgeek86 / existing code to git repo
Created Mar 23, 2017 — forked from zenideas/existing code to git repo
Adding existing source to remote git repo
View existing code to git repo
If you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/github, then push up your source)
1. Create the remote repository, and get the URL such as git://
2. If your local GIT repo is already set up, skips steps 2 and 3
3. Locally, at the root directory of your source, git init
4. Locally, add and commit what you want in your initial repo (for everything,
git add .