Category "git"

How to remove WIP flag from Gerrit changeset with Git

I've pushed a work-in-progress (WIP) changeset to Gerrit by pushing to refs/for/master%wip, as per the documentation. The documentation also states that one ca

how to clone specific folder from git using --sparse

git version 2.25.1 I'm trying to clone only a specific directory from the git repository using the below command ; git clone --depth 1 --filter=blob:none --spar

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

New git submodule missing everytime I checkout my repo/branch

Whenever I clone my repo (<my_repo>) locally, the new submodule's directory (under <my_repo>/_includes/<NEW_submodule_2>) is empty. I have add

Jenkins plugin installed failed with error some plugins could not be loaded due to unsatisfied dependencies?

Dependency errors -Pipeline Graph Analysis Plugin (1.10) Plugin is missing: pipeline-input-step (2.8) -Jenkins Git client plugin (3.2.1) Plugin is missing:

After updating Visual Studio 2022, projects no longer under Git control

Ran Visual Studio Installer for the following: Added 'Desktop Development with C++' Updated VS to the latest version 17.1.4 Now when I load any project, it is n

Can't ping github but can access github via browser at my workplace. Am I out of luck?

I can access Github via the browser at my workplace, but cannot git clone because fatal: unable to access 'http://github.com/user/project.git/': Could not res

Ignore White Space in GitKraken diff view

I have GitKraken Pro, fully updated, the 'ignore whitespace' option doesn't seem to work very well. My IDE's linter makes a lot of cosmetic changes that makes d

How to stop github from modifying my files (in workflow)?

On github.com, I have a little 6-byte file hello.txt consisting of "hello" and a newline:1 In an Ubuntu-18 workflow with runs-on: ubuntu-18.04, we have: But o

Git Diff at method level

I am looking at getting information on all the methods/function Added , Deleted and Modified between any two commits Notes - Code Base is in Java and on Github

Running TSLint only on changed files with Git Diff

I want to run tslint only on files that were modified in a pull request, instead of the entire project. git diff --name-only develop -- *.ts successfully prints

I cannot add the parent directory to *safe.directory* in Git

After updating Git to v2.35.2.windows.1 I'm getting the following error: fatal: unsafe repository ('F:/GitHub/my-project' is owned by someone else) To add an

fatal: unable to access ".....": gnutls_handshake() failed: Handshake failed

I've been using Git for the past few months. Recently when I try to clone or to push, I keep on getting this error. I've researched on the internet but so far n

Master branch disappeared from my local code

I have a repo that I cloned a long ago and I use the master that I push to create my branches to then merge with master. I opened visual studio and now I don't

Git: How do I checkout a commit and merge it back into my branch?

I've made a series of commits in my branch. However, the last 3 or so were mistakes - I want to 'revert' my branch to a previous commit. Googling the issue I u

Why is the Approve button disabled in GitHub "pull request review"?

Problem Background: So far I am the sole owner of a GitHub repo. I committed the code from my system to a branch called release (actually its a tag based on de

destination path already exists and is not an empty directory

I cloned a git repository but accidentally messed up. So I re-cloned and the message showed up: destination path already exists and is not an empty director

Use Pull Request to merge EAP files (Enterprise Architect)

I have a request to use GitHub Pull Request in a git repo which is continuously developing in a single binary file (EAP model from Enterprise Architect) into a

How can I edit the .git / config file from the git terminal?

I am trying to modify the config file from the git terminal, for this, inside the repository, I have launched the command git global --edit. An editor opens wit

Updated Git on Mac & old version still showing

I've had Git on my Mac for a while (previously downloaded and installed it from the Git website some time ago). Today I decided I wanted to update Git - I ended