Category "git"

Git alias for checkout branch, pull and checkout back

We are using the Feature-Branch-Workflow, which means others merge theire changes to the dev-branch that I want to merge into my feature branch. As it happens a

How to use this Git pre-commit hook

Yelp detect secrets is a system that prevents secrets from entering your code base. I would like to install the pre-commit hook it provides. I've never used Git

Github not recognizing ssh key

I've been using ssh keys with github for a while now. Suddenly i can't push and I'm getting a Permission denied (publickey) error. Here's what I've tried so far

npm install returns syscall spawn git error

I've tried to run npm install and faced these issues below I've tried to clear cache with force command, install git and update node but nothing worked here i

This is a large pull request. Large pull requests can only be viewed by loading files individually

I recently installed composer require league/flysystem-aws-s3-v3 ~1.0 in my app and created small line of codes of vue components and blade.php files. When I tr

Pushing a project with passwords in it

I created a django project and want to share it with my team members, however in the settings files it contains some passwords for the database etc. Of course w

How to commit code for a second time on terminal [closed]

I have committed a code into my branch, no one has written anything in it. Do I just git add then git commit -m '' and then git push as usual

Git commit command is not working properly with atom editor

When I give the command "$git commit" to git bash, then $ git commit hint: Waiting for your editor to close the file... atom --wait: atom: command not found

cannot lock ref 'refs/remotes/origin/master'

I always got cannot lock ref 'refs/remotes/origin/master' when I execute git pull first time if there are some updates. The full console log is belows. D:\cod

How to add add existing directory to version control in existing repo without modifying files?

I have to put a pretty big project under version control, which has two versions (dev and prod). These two were kept in "mostly sync" by copying files manually

Automate IBM ODM RuleApp build from Git using Jenkins

I need to build the ODM RuleApp as below Decision Service and Java XOM project is in Git Build the RuleApp through Jenkins from Git The created jar file is to b

How do I mimic `git --work-tree ...` with `go-git` in go?

I have a bare repository in which I need to add and commit a set of files. As far as I understand it, adding files to the index requires a worktree. Using git o

git - Push to all branch but only have same code? with follow up question

Did git can push to all branch but Only have same code? I mean if i have 3 branch like ver_light, ver_medium, and ver_heavy. = ver_light \controller\a \control

Building Go apps with private gitlab modules in Docker

I am trying to build my go apps on a docker file. Inside my go.mod there is private package that needs authentication/ssh. This question is similar to Building

How to download git-lfs files using the oid sha256 information

I came across a set of images (e.g., https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop/blob/master/stuttgart/stutt

Definitive retroactive .gitignore (how to make Git completely/retroactively forget about a file now in .gitignore)

Preface This question attempts to clear the confusion regarding applying .gitignore retroactively, not just to the present/future.1 Rationale I've been searc

Git/Windows - Case sensitivity issues when checking out a branch (and pulling/merging a branch). Affected files are all lowercase in Windows Explorer

Having a really strange issue with git and Windows regarding case sensitivity. I am not a master at git but I'm also not a beginner. Just want to throw that out

Git/Windows - Case sensitivity issues when checking out a branch (and pulling/merging a branch). Affected files are all lowercase in Windows Explorer

Having a really strange issue with git and Windows regarding case sensitivity. I am not a master at git but I'm also not a beginner. Just want to throw that out

How to create bare repository with pack-refs?

I need to create bare repository with package-refs files. Command git init --bare create bare repository without pack-refs files. What I have to do?

Using git submodules with python

I've read a lot of blog posts and questions on this site about the usage of git submodules and still have no idea how to better use them with python. I mean, wh