Installing a text editor - UnbDroid/AprendendoGithub GitHub Wiki
For editing our files, it is necessary a good text editor and the tools which are very usefull. Because most of the people of Droid-UnB know the Sublime. By that way, we are going to show how to install the sublime. If you are using another text editor like Notepad++
, TextMate 2
, Kate
or Gedit
, maybe they are very good and usefull, however it is not guaranteed that texteditors works well with git.
If you are using Ubuntu or Debian, you have just to type these 5 commands:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
If you are using another Linux's distribution, see the link below.
These commands were gotten through this link on 27th jan 2018. If it's not working, follow the website instructions
After doing that, we have to change the .gitconfig
file. Type on terminal the command:
subl ~/.gitconfig
Doing that, the sublime text will appear. Inside this file you have the git configurations. If you wrote your name or email wrong, you can change on it. Now, we have to configure to git accept the main text editor as sublime text. To do that, increase the lines in the end of file:
[core]
editor = subl -w
Save and close.