Category "git-branch"

Get Git Branch Name that Triggered Jenkins Build

I have a Jenkins file and a Git Hook that triggers the Jenkins build whenever a code is committed in any of the branches. I wish to print the branch name that t

Different branches in repositories

When I see my branches in a local repository with git branch in the terminal it prints only one, which is master But when I go to the gitlab page I have two bra

Reverting to a specific commit without losing history

I know this type of a question has a lot duplicates, but I wanted to open a new one because I didn't found in all of the other questions the explaination of the

Git status fatal error: working tree directory

When trying to git status I get the following git status fatal: not a git repository: D:/path/path/path/.git/worktrees/horus_app_v100 the path worktrees/horus_a

Git bare repo with multiple branches

I want to make a git bare repository with multiple branches (master, develop, release, etc..). So question is if it is possible to checkout the bare repository

Git: cannot delete local branch

I was trying to track a remote branch with $ git checkout -b --track global/master, and git created a branch named "--track". Now, when I run $ git branch -D -