To define a default configuration file for git it’s usually a good idea. This way we can easily set our personal details, alias, colors… and make a backup of it. Of course it can be done using commands but it’s better to don’t waste time with trivial things. Create the .gitconfig file (If it doesn’t exist) in the home directory: …
Change message on the last commit in Git
If you need to change the comment on the last commit just run the following command:
Create alias for shell commands in linux
Sometimes we need to type the same command many times in a terminal. One option would be looking for it in the terminal history which is handy but if we used the command a long time ago, it could be hard to find. So I recommend to use alias instead. Take a look at the following command for connecting to …
Create SSH Alias for known hosts
Sometimes I find annoying having to write the username and host when connecting trough SSH. Specially when the host name is very long and easy to forget. But that is very easy to fix, we just need to create an alias for each host in the file /home/YourUserName/.ssh/config Creating Alias Create the file config if it doesn’t exist: Edit the …
How to configure Proxy in Sabayon Linux (Gentoo)
First we need to setup the default connection settings. Go to the menu bar and click on System settings -> network settings. Click on the Proxy section and select “Use manually specified proxy configuration”. Set the following params depending your proxy configuration: HTTP Proxy = http://yourproxyaddress Port : YourProxyPortNumber HTTPS Proxy = http://yourproxyaddress Port : YourProxyPortNumber FTP Proxy = http://yourproxyaddress …