Skip to content

Instantly share code, notes, and snippets.

View wastefulox's full-sized avatar

Wasteful Ox wastefulox

  • Continental US, where waste happens most.
View GitHub Profile
@wastefulox
wastefulox / gitaliases.txt
Created December 4, 2018 17:56
git aliases
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.df diff
git config --global alias.dfs "diff --staged"
git config --global alias.logg "log --graph --oneline --decorate --abbrev-commit --all"
# walking through the workflow
# steps for working on a project, on a subcomponent.
git checkout master
git fetch
git merge origin/master
git checkout -b feedback_form
git add feedback.html
git commit -m "created mockup for feedback form"
git fetch
I wanted to do a few things to make my life easier when using GitHub and because I have to do some of these things so rarely, I wanted to document, in one solid spot, the things I do to setup my system to work with GitHub. For everyone's information, I setup Git on my PC using the terminal on Ubuntu 18.04.
From the terminal, I execute the following commands. This assumes an installation of Git exists on your box but that is just installing a package and I am confident we can all do that or we can Google it.
1. git config --global user.name "my name"
2. git config --global user.email "my.email@goofle.com"
That was everything on the command line for now! The next problem I encountered was having to type in my password everytime I was pushing code up stream. I use a random collection of numbers, letters, and symbols and it is more than 16 characters long so what I really needed was an SSH key on my box so I could stop typing in that password!
I am not going to go through creating and merging the SSH key here