Tips & Tricks with Git

I'll be updating this post with new tips and tricks about git as my personal list of useful commands and configurations. Rename file git mv --force »

How to revert few commits on a Git repository

I'm using Bitbucket and I made a few mistakes on my local repo and pushed to the server by mistake, how can I do to revert »

How to push a change in a submodule on Git and do not died trying

Ok, it's a pay in the ass, I'll try to do my best to explain it. First you do your changes and create a new branch, »

What to do when git show all your files as Modified when its not

If you are seen all the git files as Modified and you haven't change anything or you just clone you repo that's because something when wrong. »

How to tagging with git

This is the command to create a tag of our code: git tag -a v0.1 -m 'my message v0.1' The -m specifies a tagging »

How to clone a specific branch of a repository with Git

git clone -b <branch> <remote_repo> Example: git clone -b my-branch git@github.com:user/myproject.git Alternative (no public key setup »