Translate

Thursday, September 3, 2015

How to rename a tag in GIT






In this post, I will teach you how to rename a tag in git.

Actually, it is pretty easy.


I am going to rename the tag called myOldTag to myNewTag.

Step 1: we create an alias called "myNewTag"
  
     git tag myNewTag myOldTag

  

Step 2: we delete the myOldTag  tag locally
  
     git tag -d myOldTag

  

Step 3: we tell to git repository that myoldTag has been deleted
  
     git push origin :refs/tags/myOldTag

  

Step 4: we save the changes on GIT
  
     git push --tags

  

Monday, August 10, 2015

How to create a symbolic Link in linux



Basically, to create a symbolic  link in Linux you have to use the  command called ln as follows:
  
    ln -s /var/www/myapp/web/ /html/customerapp

  
the command ls has two parameter the target(/var/www/myapp/web/) and the source (/html/customerapp). The target  is the existing file/diretory and the source the file to be created.


Wednesday, August 5, 2015

Routing Error No route matches [GET] "/users/logout"




The message "Routing Error No route matches [GET] "/users/logout" is because you are sending the request via get and should be delete, so to fix it you have two options:

 The first one  is the  better, change the tag  link_to to button_to, doing that, rails will  do  the dirty work to send it as  a delete request.

The second one is not recommended, since DELETE is the appropiete RESTFUL query , but it works. Got to devise.rb change  config.sign_out_via = :delete to config.sign_out_via = :get



 

Tuesday, July 14, 2015

How to find which Linux distribution and version you are using?





To know  which Linux distribution and version you have installed on your computer,  follow this  steps:

1-Open your terminal
2- Type the following command

 cat /etc/issue




Output: