Category "git"

Git Warning: LF will be replaced by CRLF

I am using Git gui. I see this error for several files in a folder. I have two choice buttons - Unlock index and Continue. I don't understand what the buttons d

npm ERR! git dep preparation failed when trying to install package.json

I'm trying to install package.json file using the command npm install, but I'm getting the following error. npm ERR! git dep preparation failed npm ERR! command

Create a git repository on server side

I have a big problem and I can't understand this topic. I have a server with a website. I created a repository there with git init. Than I made a git add * to a

Nodejs Express on Heroku App EACCES 0.0.0.0:80

I am trying to run a Node app on a newly created Heroku App from their web. I followed their steps and still I am getting errors when displaying app status. I

Azure DevOps: How to create a folder in GIT repo with REST API repo

I want to create a folder hierarchy in a GIT repository on Azure Devops using the REST API. (automated via a script) The docs https://docs.microsoft.com/en-us/r

How to fix error 'not found husky-run' when committing new code?

When committing on a project that uses Husky, I get an error that says not found husky-run I checked the package.json and it has husky as a dependency, and I ca

What is the difference between running "git mv" versus just "mv"

What is actual difference in results when it comes to source control systems, between running a command like: git mv <src> <dest> # see: https://gi

Is it okay to use git without branches?

I have used git a few times and it has always been a painful experience. However i noticed that bitbucket host private repos for free if less then 5 users and I

GitLens extension disappeared

I'm work on Linux Mint: Screenshot of mint version I have latest version of Visual Studio code: Screenshot of vs code version After new reload of OS extension G

How to look at another developer's branch using git?

I had a project where I was the only developer. Then a new developer joined the project and created his developer branch. I would like to create a separate pl

Jenkins trigger Job on multiple branch changes

I want to build a Jenkins job when a change was done (merged) in multiple branches. What I tried was to configure "Source Code Management" with GIT, Branch Sp

Git clone failing with "initial ref transation called with existing refs"

I tried cloning my website repo and I got this error that I've never had before. I don't know if I should still try to use my local repo if its unstable. chen@c

Run both local and global git hooks

I have a global git hook post-commit which is situated under: ~/.git_templates/hooks/post-commit I have made it global by git config --global init.templated

git clone with different username/account

How can I clone something on git with a different account? For example, I might have been using one account for cloning, and now I need to access a repo that on

Applying patch doesn't create newly created files in Git

I have created a new file called ABC.txt in branch x. I didn't commit the changes. Then I wanted to move these changes into a new branch called y. So I followe

git update-index --assume-unchanged not working for me

I am in a project building a web app. We use Git for version control and Gulp for task automation. I would like to temporarily ignore files to a certain folder,

Can I allow Github organization members to invite other members

I have created a Github organization and have invited a small group of members. In future there will be more than 100 people using this organizations repositori

Github problem: Git pushes to master branch, not main and can't merge the two

Every time I create a repository on github and push my files it creates two branches, the main branch and the master branch. All the changes go to the master br

How to take latest changes from dev branch to my current branch

We have below branches on which we work. master dev person A person B We both keep working on our branches i.e. person A or person B (working on same project

How can I change the origin remote in VSCode?

VS Code is my actual IDE and git client for all my projects. I'd like to change the origin remote of an actual repository. How can i do it?