GIT

How do I undo the last commit using GIT command

GIT has a great feature that allows us to undo the last commit. In some cases like, by mistake, you had committed the changes to GIT, or your client said that he doesn't need previous changes; in such cases, you will have to undo previous changes from GIT. It also provide us feature to change… Read More »

Category: GIT

Renaming git branch on local or remote repository

In some cases, like you named branch incorrectly and pushed this to remote server or your project name has been changed to some other name you want to rename branch name then this tutorial is going to show you how to rename git branch repository very easily. To make this happen you will need to… Read More »

Category: GIT

How to remove local untracked files from current Git branch

If you want to remove files and directories that are not being tracked then you could easily remove them by following this small trick. You can remove all untracked files by using GIT git-clean command.   Remove untracked files from current git branch git clean -f Run above code to delete all unwanted files from… Read More »

Category: GIT

Renaming git branch on local or remote repository

In some cases, like you named branch incorrectly and pushed this to remote server or your project name has been changed to some other name you want to rename branch name then this tutorial is going to show you how to rename git branch repository very easily. To make this happen you will need to… Read More »

Category: GIT