Category "git"

how to apply same stash to different branches in git?

I have four branches lets say A B C D. I worked on branch B for some function and created stash. This feature I also want in branch A and D . Is there any wa

git ssh_exchange_identification: read: Software caused connection abort

Today I fork a project into my github from https://github.com/bhlx3lyx7/incubator-griffin/tree/master. When I use git clone command like this: git clone git@git

Jenkins Unable to connect to Bitbucket cloud

I am setting up project in Jenkins where I have to pull code from bitbucket cloud. I am seeing errors in Jenkins. Thing is Jenkins is unable to connect to bitb

GitHub pages post links not working

I'm trying to get a Git Hub pages blog to work (https://vcedgar.github.io/CREU-Poly-17/), but when I go to the link my posts are supposed to be on the link does

Trunk-based development release & hotfix questions

I'm having trouble to understand how to deal with the following scenario: Feature A is committed to master as commit A. We are ready for release v1.0.0 so we t

How to update/cherry-pick other branches on push on specified branch?

I would like to create GitHub action that is triggered by push on specified branch X. This action will push/cherry-pick changes made on branch X to other branch

Why is `git push --force-with-lease` failing with "rejected ... stale info" even when my local repo is up to date with remote?

I'm trying to force push a rebase of a feature branch to a remote repository. To be a bit safer, I'm trying to use --force-with-lease to make sure no other chan

Git bash giving error of warning: unable to rmdir

I am using git bash on windows 10 which was recently updated to creators update. whenever i am trying to switch between branches i get following thing $ git f

Git tab completion stopped working on remote branches

I've updated git to its latest version (2.29.0) and I'm using ZSH 5.8. I used to switch between branches with git checkout remote_br<tab> to quickly switc

Reverting Git Stash Pop

I executed git stash pop twice instead of once and am now getting the following warning. Unmerged paths: (use "git restore --staged <file>..." to unstag

Is there a way to view last commit for selected line in IntelliJ?

I just switched from Visual Studio Code to IntelliJ for Java development. Is there any way for IntelliJ to show last commit information on the current selected

How to sharing code between two projects on Azure Databricks

I have two ML projects on Azure Databricks that work almost the same except that they are for different clients. Essentially I want to use some management syste

How to get latest commit hash from remote?

I wish to retrieve the latest commit hash on the remote repository, regardless of branch. I've tried git ls-remote <remote> and git ls-remote --tags <

Can I ignore flake8 errors by passing a git commit flag?

I have aflake8:check todo pre-commit hook, which I want to ignore for now. I can ignore everything if I git commit --no-verify but I do want all other hooks to

Git submodule codecommit

I have two repositories in AWS Codecommit and I want to add the one repo as submodule into the other repositories. The two repos are located in a role, not in t

"Illegal characters in path" while cloning with git from Visual Studio 2017

On Visual Studio 2017, I can not clone a repository with git. I'm having this error message: The repository url is good and the destination folder is also fi

What is the point of 'git submodule init'?

Background To populate a repository's submodules, one typically invokes: git submodule init git submodule update In this usage, git submodule init seems to

How to deploy to Heroku if my client and servers are in separate folders?

I have a repo with 2 folders - 1 for the server, 1 for the client, and each folder has its own package.json file. I am trying to deploy the server to Heroku, bu

How to show full-file git blame in vs code

At one point I found a way to show line-by-line git blame within vscode. I now cannot recall or find the means with which to do that. I have the Git Blame exten

cherry pick multiple commits as one without going through each one git apply patch

I have branch A with a few commits I need to cherry-pick into branch B. In the first cherry-picks I've added code that I've later removed in the last commits. W