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 […]
git
Git Bash: Change Home Directory
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.
Git Bash: “Unable to get local issuer certificate”
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 – Checkout Remote Branch
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.
Git: List Remote Branches
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 […]
Git: Detached HEAD – Go Back – [Fixed]
“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’, […]
Git: Create Tag & Push Tag to Remote
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 […]
Git: Delete Tag – Remote & Local
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.
Git: Checkout Tag – As Branch
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.
Git: List Tags – How to Show Tags in Git
Tags in a Git repository can be listed using the git tag command. Before listing all the tags it is required to ensure that the latest tag list from the remote repository has been fetched. On the other hand, even without pulling or fetching, it is possible to get a list of tags on the […]