Category "git"

How can I get the git source code used for a TFS 2018 build during one specific TFS 2018 Release environment?

Objective: A TFS (2018) release with an environment that downloads the source code used for the build (using commit hash I would assume) and zips it up before c

VS Code 'git mv' to preserve file history?

Is there any way in VS Code to change a file's name so that the file history is preserved in git, and it doesn't think the tracked file's been deleted? I'm hopi

Folders not pushed to Git remote repository

I am trying to push my project folder to my repository on GitHub. The project has two separate folders, one for back end and one for front end. I gave the follo

Is it possible to only trigger a Pipeline if certain files are changed?

I have a project with a working GitLab-CI configuration, but I only want to create and execute a pipeline, when one of my config files are changed. Is there a w

What does "--remote" actually do in "git submodule update --remote"?

I just do not understand the help page of Git. So what does happen or what is the difference? Assume I have a Git project A with a submodule B. Submodule B doe

What will happen if I delete the .git folder after my work is done with git? Will I have to start new repository when working again on that directory?

You know, these .gits don't look fine in a PC when you work.So I have decided to delete it. But I'm afraid if it deletes my files/folders cloned/pulled from git

How to write setup.py to include a Git repository as a dependency

I am trying to write setup.py for my package. My package needs to specify a dependency on another Git repository. This is what I have so far: from setuptools im

Git: How to measure the amount of code changed in a period of time? [duplicate]

I'm looking for a command to execute against my git repo to discover the amount of code changed in a certain period of time. I want to know h

NPM standard-version patch version problem

I'm trying to use standard-version in my javascript project. I added the release script to my package.json: "scripts": { ... "release": "standard-versio

Undo IntelliJ Smart Checkout

IntelliJ has a feature that's very cool in theory, called Smart Checkout. This feature kicks in when you're changing branches and you have files in the current

Git: How to make outer repository and embedded repository work as common/standalone repository?

I have a big project(let's say A repo), and it there one child folder which is come from B repo. I would meet warning like below when I commit from A repo war

Visual Studio showing false errors

I was working on a project, and I usually before doing anything I create new branches. In my feature branch, Visual Studio wasn't showing any errors. It was do

How to make git ignore comments in file?

I have a problem while trying to commit and sometimes a comment have slightly changed in some way (eg different number of spaces like // Text compared //Text).

GitHub "can't automatically merge"?

Sometimes when i try to merge the head fork into my base fork, or my base fork into the head fork, I get the following message on GitHub: "Can’t auto

Git error: Encountered 7 file(s) that should have been pointers, but weren't

How to clean repo, if staged files marked as modified? After git reset --hard I get Encountered 7 file(s) that should have been pointers, but weren't: Running

Differences between git submodule and subtree

What are the conceptual differences between using git submodule and subtree? What are the typical scenarios for each?

How can I deal with this Git warning? "Pulling without specifying how to reconcile divergent branches is discouraged"

After a git pull origin master, I get the following message: warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squ

How can I deal with this Git warning? "Pulling without specifying how to reconcile divergent branches is discouraged"

After a git pull origin master, I get the following message: warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squ

Git mergetool with Meld on Windows

In Linux, my favorite merge tool is Meld, and I've had no problems using or configuring it to work with Git. However, in Windows it has been a different story.

How can I stash only staged changes in Git?

Is there a way I can stash just my staged changes? The scenario I'm having issues with is when I've worked on several bugs at a given time, and have several uns