Category "git"

Git tag name in Azure Devops Pipeline YAML

Summary How do I get the name of the current git tag in an Azure Devops Pipeline YAML-file? What Am I Trying to Do? I am setting up a build pipeline in Azure

In git, obtain commits using git log with path

I would like to obtain the last 10 commits using git log specifying the path of my repository. I used the option -path but I have "is outside repository" error

Why does HEAD in my worktree point to the top commit in master?

I created a worktree using git worktree add and it was working as expected for a few days. Today, I wanted to check out some code at the previous revision, so I

How do I set up my terminal on Mac to auto open Sublime Text Editor when using git commit command?

I am trying to set up git on my terminal, and need it to open up Sublime text when I use a git commit command, so that I can add a note to my commits. If I type

Fatal: 'heroku' does not appear to be a git repository

When I run git push heroku main, I'm getting this. To let you know that I this is my second project I'm trying to push to heroku. I already pushed a project fol

When file/folder is renamed, how to view the old name details in commit log/commit history?

In SourceTree, when a file is renamed then in commits it is displayed with the icon and the new name. But how do I find the old name in SourceTree? Here I chan

Conflicting revision error when sourcing from multiple git repositories in yocto

I want to fetch from two git repositories in yocto, but I get an "conflicting revisions error. The code I use is like this: SRC_URI_append = " git:///home/proje

adding patch and another git source does not work in yocto

I have tried to add another git sources from another project and a patch like follwoing in bbappend file (fyi in the bb file I have the first git repo where I g

GIT get first tag per file in current state

To compare individual files between many releases, I want to keep track of the first release where a file has changed, per file. I want to log the first tag for

jenkins trigger build if new tag is released

I want to configure jenkins so that it starts building if a new tag is released in any branch of an git repository. How do I configure this behaviour? Triggeri

Why can't Git resolve remote branches when --single-branch is used?

So, we frequently optimize clones by effectively cloning with --single-branch. However, we are then unable to get additional branches later. What is the differe

ssh with 2 accounts in gitlab doesn't work

I'm trying to add 2 ssh keys in my pc to work with 2 gitlab accounts, I created 2 pair of keys and made this "config" file: # Compte Perso Host gitlab.com-perso

Always pull using HTTPS, push using SSH, using insteadOf?

I have a number of repositories using different Github URL formats. I would like all repositories to always fetch from Github over HTTPS, and to push over SSH.

Unknown revision or path not in the the working tree error for first push to empty remote

I have a local git repo with many commits. I created an empty repo in github (not initialized with any files). $ git remote add origin https://github.com/bar/f

How can I get git log to print the full hash and short stats of each commit on one line?

I would like to get this kind of output with git command line: bcfd649de8850e3bfc9584eb12be8fe136ca6985 3 files changed, 8 insertions(+), 1 deletion(-) I'm c

Pre-commit does not allow GPG code-signing?

We sign each commit with GPG2 for security purposes. Usually this involves a full-terminal-window "popup" asking you to enter a password after running git commi

! [rejected] master -> master (fetch first)

Is there a good way to explain how to resolve "! [rejected] master -> master (fetch first)'" in Git? When I use this command $ git push origin master it d

Jenkins groovy - How to retrieve tag from latest commit?

To fetch the latest commit from branchName, we run below code: treeMapData = git(branch: branchName, credentialsId: credential, url: "${gitLabServer}/${project

Create repository button disabled on GitHub

I am using macOS version 11.2.2 BigSur. I don't seem to be able to create a GitHub repository on the web (I am using safari). The button is greyed out or you sa

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