Category: GIT

GIT Aliases

As a long time user of Linux I really like using aliases, it speeds up typing and repetitive commands. Git has also aliases built in so you can use it on all platforms. The only drawback with alias is that when you pair with a...

Read More

GIT Tip: Autocorrect

A neat trick to configure GIT to automatically correct your typos. Let say that you want to check the status of your repository and wrote:git statsYou will get the following error:git: ‘stats’ is not a git command....

Read More

GIT TIP – Push Only the Current Branch

Are you tired of always have to tell GIT which remote branch to push and not accidentally pushing all branches? You can actually tell GIT to only push the current branch to another branch with the same name:git config...

Read More

Remove a remote tag in GIT

If you need to remove a tag on the remote repository, this is how you do it:Remove it locally:    git tag -d mytag Then you need to push the change to the remote repository:   git push origin...

Read More

GIT – Rename a remote branch

It seems that the only way to rename a remote branch is remove it and create it again. So before you start you need to be sure that all code has been committed and pushed to the branch and that you have the latest versions. 1....

Read More

GIT – Create/Delete a Remote Branch

It’s really easy to create a remote branch on a distributed repository    git push origin <newfeature>Where origin is your remote name and newfeature is the name of the branch you want to push up.Deleting...

Read More

Why do I love GIT?

I get this question a lot, and it is a valid question. Those who know me, know that I am not into tools, don’t get me wrong, tools are great, but there is too much fokus on tools and not the craftmanship. It’s human...

Read More
Loading