返回首页

Questions tagged [git]

Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. DO NOT USE [github] tag for Git-related issues simply because a repository happens to be hosted on GitHub. Also, do not use this tag for general programming questions that happen to involve a Git repository.

Filter by
Sorted by
Tagged with
-1
votes
0answers
4 views

git - Master builds ok, but taking a clean branch from master fails the build

I'm using git and I have a remote repo with master branch. This branch currently builds perfectly on my local machine and our remote Jenkins server and all tests pass 100%...this has been verified by ...
0
votes
0answers
3 views

Does “git push origin master:qa --force” works if I want to override origin qa with origin master?

I've been having some problems with my remote (origin) QA branch. I think it is time to override it with origin master. I am thinking about doing the steps below: 1.git checkout master 2.git push ...
0
votes
0answers
6 views

release-notes-generator plugin configuration for “preset”: “eslint”

Trying to make sense of the required semantic-release/release-notes-generator plugin configuration to match the following commit-analyzer. Currently the release notes are generated for tag:New & ...
0
votes
0answers
9 views

Visual Studio problem with git commit and csprj files

I have an issue in some Visual Studio C# projects, when I commit changes in a c# project. If I added a new file to the project, this information is added to the csprj-file of the project. I do a git ...
0
votes
1answer
8 views

How to add version information to a git repository which is distributed as ZIP archive?

I'm looking for best practices when it comes to adding version information to the content of a ZIP archive which is currently created from a git repository by bitbucket (git-related files are removed ...
0
votes
0answers
5 views

Unable to create git tags with dynamic messages

I wrote nant script for create git tags with dynamic messages. Ex. <target name="target1" description="blabla" failonerror="true"> <property name="tagMessage" value="${sys.version}, ${...
0
votes
0answers
7 views

Why does adding packages directly from github add so many packages tot package-lock.json?

I needed to fork a npm package, make some small changes and add it to my project. I did and added a branch of the forked package to my project through this command: npm install user/nameOfThePackage@...
0
votes
0answers
5 views

githook pre-commit ng lint without touch package.json

I'd like to set a gitHook to prevent a lint issue without touch a "package.json" Is this possible?
1
vote
0answers
23 views

Two git remotes with different history

We have an internal corporate github repository that we want to open-source to github.com soon. In order to do so safely we want to remove the git history upon the initial push to the public repo. ...
-1
votes
0answers
11 views

How to deal when I do some changes on Git Remote Repo

I am facing an issue, i created a git repo in my cPanel and clone it. after that i put my project in that repo and push it to remote repo. it works well. but when i change the db credentials in the ...
-1
votes
1answer
20 views

Can't install flutter can't find GIT PATH

I can't install my flutter I checked on Youtube but it doesn't work. What did I wrong? See the picture below here: This is the path of my flutter and GIT Here is the error in cmd Here is my ...
0
votes
0answers
18 views

version control on a deviation of a read-only git repository

I have read-only access to a project 1 git directory. I would like to set a git directory that handles the changes and addition of only a few subfolders in the project 1 and would call it project 1.2 ...
1
vote
0answers
20 views

How to remove user sensitive data from Github

I'm flowing the Github article "Removing sensitive data from a repository" in order to remove some sensitive data from a Github repo, but I don't know how to "force push" the ALL changes that I have ...
0
votes
1answer
17 views

.gitignore being ignored despite `rm --cached`?

Similar: 35735862/gitignore-difficulty-with-folder-exclusion-being-ignored Goal: I'd like git add . to not result in my file being tracked. Build info: ##` git version 2.24.1.windows.2` using ...
-1
votes
0answers
19 views

Extracting Jira tickets from GIT commit message using groovy

I'm writing Jenkins pipeline in which I'm extracting Jira tickets from GIT commit message.I'm using JIRA ID regex. How can I process a multiline string? I also have to display commit messages which do ...
1
vote
0answers
16 views

Visual Studio Code: Push to git works from Terminal but not when using the user interface

Running Windows 8.1 64-bit with the following installed: Git for Bash (v2.24.1.windows.2) using MinGW-W64 Visual Studio Code (v1.41.1) The ssh key (located at %USERPROFILE%\.ssh) has been generated ...
-1
votes
0answers
13 views

Branch merge issues in gogs and Gerrits [closed]

I have master branch in my repository. After I done changes and push my code in master branch. It will reflects in both gogs and gerrits. I created new branch as "testing" and merge changes. After I ...
0
votes
0answers
15 views

What is the best way to work with remote git repository based on Google Cloud Platform Compute Engine VM?

I have a VM (Debian 9) instance on Google Cloud Platform. I've installed Apache on it, and want to serve my website. Now I want to find the best way to manage my source code there. I've created a ...
-3
votes
0answers
20 views

Is there any way to copy all the changes code after doing git pull to another seperate directory? [closed]

Is there any way to copy all the changes code after doing git pull to another seperate directory ?
0
votes
2answers
28 views

How to cherry pick a commit TO a remote branch without checkout? [duplicate]

Is it possible to cherry-pick a commit from a first remote branch to another remote branch, without checkout any of the two branch?
0
votes
0answers
8 views

Visual Studio Code add error lines to debug.log automatically

I don't know why but every time I change something in my project the following sentence is added to debug.log file: [0124/085418.459:ERROR:crash_report_database_win.cc(428)] unexpected header The ...
0
votes
1answer
10 views

Is there any way to add log files for review in gerrit?

I want to add log files for reference in the review. These files are not the actual code files which are getting updated in the repository, but are generated while testing the actual code changes. I ...
1
vote
1answer
10 views

How to convert all merged remote git branches to tags? (create tags, delete branches)

(Before I use giltab's delete merged branches feature (see http://docs.gitlab.com/ee/user/project/repository/branches/#delete-merged-branches ) - I want to tag them - in case I'll need to reference ...
1
vote
2answers
24 views

What is difference between git checkout remotes/origin/branch and git checkout branch?

When I execute git checkout remotes/origin/test_branch my HEAD goes in a detached state. Below is output: C:\..\git_test>git checkout remotes/origin/test_branch Note: checking out 'remotes/...
0
votes
0answers
7 views

In Plesk - Git what is the difference between the Deploy and the Pull Updates button?

When manual deploy is selected two buttons are shown on the dashboard next to the git. Deploy and Pull Updates. What is the difference between the two? The documentation does not cover this part. ...
0
votes
2answers
19 views

automatically add changes to local repository from local folder

I want to sync changes which are being made in local folder to be added automatically in local repository. So, that I don't need to add changes manually every time into local repository before ...
1
vote
1answer
15 views

How to extract a local .repo folder into files if the remote branch doesn't exist anymore?

I have an old downloaded Android source code .repo folder but the remote on Github doesn't exist anymore. The .repo folder is about 50GB. Is there a way to extract it into source code files using the ...
0
votes
0answers
10 views

Mergetool with no prompt

I am using mergetool to enhance modifications of files regarding merge conflicts. I wish to use mergetool without prompting from me. Kindly provide me a suggestion. See 'git mergetool --tool-...
1
vote
3answers
27 views

unable to Update laravel 5.8 from 5.7

trying to update laravel version 5.8 from 5.7 according to laravel Doc and then run composer update -vvv I am trying to upgrade my site from Laravel 5.7 to 5.8. I changed laravel/framework in ...
1
vote
2answers
32 views

MAC + git gui -> version conflict for package “Tcl”: have 8.5.9, need 8.6

I am getting this error when I click git gui from my terminal: version conflict for package "Tcl": have 8.5.9, need 8.6 Can you help me to resolve this? (using mac)
1
vote
1answer
20 views

Github workflow automation

I try to automate workflow in my GitHub project kanban board. The goal is: when the issue is closed and card located in "Closed" column I want to get notification via email that this issue was closed ...
0
votes
1answer
11 views

What is the best way to copy an entire Jekyll project I've made into a separate git repository?

So long story short, a while ago I forked a Jekyll template to learn how to use the framework. I have made MANY changes to the original starting point and have completely refactored the code to be my ...
1
vote
2answers
37 views

git reset --hard HEAD Vs. git reset --hard

What is the difference between git reset --hard HEAD and git reset --hard? I think both do exactly the same and are simply synonyms, but please let me know if I am wrong. Thank you.
0
votes
0answers
8 views

NET_ERR responded from Jenkins server when Webhook sends request to Jenkins server to do the build

I have Bitbucket Cloud, Webhooks is configured to connect to Jenkins server. On Jenkins server, Bitbucket Branch Source plugin, Git plugin are both installed. When add Webhooks at Bitbucket cloud ...
2
votes
1answer
14 views

Unable to clone/fetch from private repo after creating new GitHub account

I'm a freelance developer who uses git and SourceTree. I have been working for the past few months for a particular client who has a private GitHub repo, and I've been using SourceTree during that ...
1
vote
1answer
26 views

how to use git shortlog to aggregate user commit stats over multiple repositories in a single directory?

I have a directory with a lot of git repo subdirectories in it and I would like to accumulate information similar to git shortlog -sne --no-merges for all the repos in it sorting the users by all ...
0
votes
2answers
38 views

Is it possible to git clone a repo inside of another repo and commit its files except for its .git folder?

I tried to git clone a repo inside of another repo and the files are not included when I commit the parent repo to GitHub. I developed some private npm packages that I use in client projects. The ...
0
votes
0answers
6 views

how to determine range of commits needed to run an incremental build with NX

In a CI/CD server, how can I determine the range of commits to include in the nx affected:build --base=master~1 --head=master command? http://nx.dev/react/api/workspace/npmscripts/affected-build nx ...
2
votes
1answer
20 views

Two different local repos commit to one Github repo

Is it possible to have two repos with two different sets of folders and files both committing to one repo on Github? If so how do I set this up? As in the following: Repo 1 -Folder_1 -Folder_2 -...
1
vote
1answer
12 views

Is there a simple way to attach an existing non-empty directory as a git worktree?

For example, I have /tmp/foo Git repository, etc branch and non-empty /etc directory. I wish to attach the /etc directory as a worktree to the etc branch. git worktree add /etc etc won't work due to "...
0
votes
1answer
22 views

how to use git base to fetch latest version from upstream

Let's say we have a upstream A. I forked it to my github, let's call it B. Then i use 'git clone' to clone my fork to my develop environment. So now A is upstream and B(my fork) is origin. and i ...
0
votes
1answer
13 views

Programmatically set git credential cache through command line

I'm using the command git config credential.helper 'cache' so I don't have to input my username and password repeatedly. However, this requires that I set the credentials one time. Is there a way that ...
0
votes
1answer
32 views

Using Git to organize a folder with different versions of the same project

I have a folder similar to this: Hello World ├── Hello World 1.0.py ├── Hello World 2.0.py ├── Hello World 2.1.py └── Changelog.txt Where "Changelog.txt" is something like: 2.0: Added a pause at ...
0
votes
1answer
25 views

git can't push to server because of new head branch

I'm working in a source tree and I went and reverted back to a checkout on a commit and now it's generated a new head or branch so when I push to the server it's not working to push to the master ...
1
vote
2answers
16 views

Get the list of changed directories in last commit [duplicate]

I have a requirement where I want to get the list of directories those changed in a last commit. For example that I have a version of a code in my repo, branch name is master. This code has 3 ...
0
votes
0answers
17 views

Can I only merge a single branch at a time?

I receive the following error when I issue two pull requests in quick succession: An exception of type 'LibGit2Sharp.LibGit2SharpException' occurred in __.dll but was not handled in user code, can ...
1
vote
1answer
18 views

How delete a local branch after merging it through a pull request? git-flow, bitbucket, sourcetree

My environment in local: Git connecting with Bitbucket Sourcetree with git-flow Steps I create a feature x in Sourcetree then I add the code. I do a commit including the option to create a pull ...
-2
votes
0answers
14 views

git repository clone fails due to git credentials not saving

I have 5 repositories hosted on an azure server. I have installed the latest GIT version on windows OS machine with git credentials manager. Not sure if the system configuration is the issue or there ...
0
votes
0answers
9 views

Fabric 2 automating deployment error when git pulling on remote server. Repository not found

I'm trying to automate my deployment with Fabric 2. When I manually do a git pull through the command line on the remote server everything works fine. When I try to do the same with my Fabric/Invoke ...
0
votes
1answer
11 views

Changing installation directory of GitLab

I am trying to install Gitlab (Community Edition) on Linux CentOS. According to my knowledge, the configuration files are stored in etc/config and the data are stored in /var/opt/Gitlab. But I want to ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞