An alias in Git is a shortcut that Git translates into a full-text command. With the aliases you can avoid typing the entire text of each of the Git commands over and over again, that significantly improves the experience of working with Git from the command line. In this note i will show how to […]
By default the startup directory where you appear when you launch Git Bash is /, that is the installation folder of Git Bash. If you need to find out the path to /, you can run this command: $ explorer . It opens the current directory in the File Explorer so you will see the […]
The Home (~) directory in Git Bash can be changed by setting the user-level %HOME% environment variable in Windows. This is quite safe as the %HOME% environment variable is not normally set for Windows applications, so creating it shouldn’t affect anything else. Moreover, setting the user-level environment variable in Windows doesn’t require admin rights.
While cloning a Git repository using Git Bash (Git for Windows), you may get an error as follows: fatal: unable to access ‘<URL>’: SSL certificate problem: unable to get local issuer certificate In this short note i will show a fast workaround of this problem and how to resolve it properly.
Git doesn’t allow to work on remote branches directly so you can’t literally checkout a remote branch. If you want to checkout a remote branch, you need to create your own local “copy” of that branch and then check it out. This note shows how to do this.
To checkout a remote branch in Git, first of all it is required to figure out what branches exist on a remote Git repository. By default, the git branch command lists the local branches only. In this short note i’ll show how to list only remote branches in Git and also how to list all […]
“You are in ‘detached HEAD’ state” is not an error message and is nothing to be worried about. This state means you are no longer on a branch, and it happens when an arbitrary commit is checked out instead of a branch. If this state was unintentional and you want to “fix” the ‘detached HEAD’, […]
Tags in Git are used to label specific commits (to mark releases, for example). In this note i will show how to create a Git tag and push it remote repository using the git tag and git push commands. I will also show how to find out the most recent tag name and how many […]
Tags in Git are used to label specific commits (to mark releases, for example). Once created locally, Git tags can be pushed to a remote repository. In this note i will show how to delete local Git tags using a git tag –delete command and how to remove Git tags from a remote repository.
Tags in Git are used to label specific commits (to mark releases, for example). Each tag points directly to a specific commit in the Git history. In this note i will show how to checkout a tag in Git and how to create a new branch from it.