This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |