Install Tools
apt install -y git vim
Optional Tool Customisation
curl -o ~/.vimrc https://raw.githubusercontent.com/amix/vimrc/master/vimrcs/basic.vim
Add git extensions to Bash Prompt (.bashrc) - Ubuntu
cp ~/.bashrc ~/bashrc.original - Make a backup copy
sed -i '59,63d' ~/.bashrc - Remove existing lines
Add new lines enabling GIT Prompt
sed -i '59i parse_git_branch() {\n git branch 2> /dev/null | sed -e '\''/^[^*]/d'\'' -e '\''s/* \\(.*\\)/(\\1)/'\''\n}\nif [ "$color_prompt" = yes ]; then\n PS1='\''${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[01;31m\\]$(parse_git_branch)\\[\\033[00m\\]\\$ '\''\nelse\n PS1='\''${debian_chroot:+($debian_chroot)}\\u@\\h:\\w$(parse_git_branch)\\$ '\''\nfi' ~/.bashrc
Update - Install a Sexier git bash prompt
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
vi ~/.bashrc
alias l='ls -lh'
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_THEME=Single_line_Solarized
source ~/.bash-git-prompt/gitprompt.sh
Optional Config
git config --global user.email "me@email.com"
git config --global user.name "babadeboo"
Create Repo
curl -u 'soulmanos' https://api.github.com/user/repos -d '{"name":"my-new-repo-name"}'
Download Repo to Local Machine
git clone https://github.com/soulmanos/my-new-repo-name.git && cd -
Add gitIgnore File
curl https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore -o .gitignore
Add Credential Helpers
git config credential.helper store
Commit Initial Files (Readme)
cat <<'EOF' >> README.md
Description
===========
Usage
-----
EOF
git add --all :/
git commit -m "Created Repo & Added README"
git push -u origin master