Difference between revisions of "Git install"
From Wiki2
Line 3: | Line 3: | ||
=====git prompt===== | =====git prompt===== | ||
add to bottom of .bashrc | add to bottom of .bashrc | ||
source /etc/bash_completion.d/git-prompt | |||
PS1=$PS1'$(__git_ps1 "\[\e[0;33m\](%s) \[\e[0m\]")' | PS1=$PS1'$(__git_ps1 "\[\e[0;33m\](%s) \[\e[0m\]")' | ||
and uncomment (at around line 39 in .bashrc) | and uncomment (at around line 39 in .bashrc) |
Latest revision as of 17:56, 24 January 2017
git install
apt-get install git-core
git prompt
add to bottom of .bashrc
source /etc/bash_completion.d/git-prompt PS1=$PS1'$(__git_ps1 "\[\e[0;33m\](%s) \[\e[0m\]")'
and uncomment (at around line 39 in .bashrc)
force_color_prompt=yes
setup .ssh
check for .ssh
ls -a ~/.ssh
if not
ssh-keygen -t rsa -C "mckenna.tim@gmail.com"
copy the public key to github/account/sshkeys
git config --global user.name "mckennatim" git config --global user.email "mckenna.tim@gmail.com"