返回首页

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
vote
1answer
8 views

resolve over 500 conflicts files in GitHub Desktop

We have two branches. staging and production, we made many changes in the branches including new files names. now I tried to git merge - but I get this error. is there any command line in terminal ...
1
vote
1answer
13 views

How to rebase a gerrit change using commands?

I have a gerrit change which has merge conflict with master, when I cherry-pick the change, it says error: could not apply 0819af2... Test change hint: after resolving the conflicts, mark the ...
0
votes
0answers
11 views

Heroku “failed to push some refs” when trying to push React app

Going by this: http://dev.to/smithmanny/deploy-your-react-app-to-heroku-2b6f, I am trying to deploy a simple react app out of the box from create-react-app to Heroku. npx create-react-app my-app cd ...
-3
votes
0answers
16 views

Recover deleted git stash [duplicate]

The other day a friend and I did a code review on the wrong branch. So I committed the changes for that branch and stashed the changes that did not belong to that branch. Slowly I committed the ...
0
votes
0answers
5 views

Meld error: git difftool doesn't work on my setup on mac

I met a problem when using meld. I followed this link to setup meld on mac: http://yousseb.github.io/meld/ I installed meld with Mojave and added below lines in .gitconfig: tool = meld [difftool]...
0
votes
1answer
35 views

Rebasing a branch changing contents of a newly added file which has no conflicts

Is there an instance where when rebasing a branch with let's say origin master results in contents of a newly created file (that has no conflicts since it's new) in that branch changing? If so, what ...
0
votes
0answers
11 views

Jenkins Declarative Pipeline - Git stuck on fetch

I am writing a Jenkins declarative pipeline that would merge a branch from one repo (Test in my example) to a branch of another repo (TestDownStream in my example). However, I am running into an issue ...
0
votes
0answers
6 views

Bitbucket file modifications don't appear after merge

I have made a few changes on a few lines of code in a file at work and before I pushed the commit, git clearly showed me the lines I modified. However, on bitbucket under the file it appears a message ...
0
votes
0answers
10 views

Git submodules vs Mercurial subrepositories--significant differences?

My team is thinking about switching from Mercurial to Git. Our current Mercurial setup uses subrepositories. My impression, after playing around a little bit with Git submodules, is that Git ...
-1
votes
1answer
31 views

Change git branch type

I searched how to change a branch name and found the commands below: git branch -m new-name git branch -m old-name new-name What's the problem? The problem is that created branches aside our ...
0
votes
0answers
19 views

How to remove filemode changes in a new GIT branch?

I just received a branch of code from another developer and while his code changes are valid. He has inverdently committed some filemode changes as I am seeing permission changes in the diff but no ...
0
votes
2answers
18 views

Unable to continue with rebase due to untracked working tree files would be overwritten by merge error

I'm currently mergin two branches using git rebase -i, There is a commit that is not letting me continue with the rebase. When I check the commit I see that there are some files but nothing is ...
0
votes
2answers
11 views

GitHub adding an already existing PHP (non-GIT) project

I have a project that I am working on for quite a while. In PHP. Now I would like to use GitHub for version control and allowing me to work on it from multiple pc's. My laptop or desktop. Or in case ...
0
votes
1answer
12 views

Pin a version number of git revision with pip install --target

I have two Python projects in separate repos, say: common and depends_on_common. Due to the constraints of our deployment environment (I do not have ssh access), I'm hoping to use pip install --no-...
1
vote
1answer
45 views

52 commits behind master

I made some changes in my local repository and pushed those in the remote branch, when I created a Pull Request for the same, I noticed that the branch contains all the commits I have made against the ...
-3
votes
0answers
11 views

Choose the two different strategies, which are often forgotten while implementing version control during SCM process

The options are as below:- a) Streamlining Changes b) Branching c) Linking Work items to code d) Iteration of Process
0
votes
0answers
11 views

Git push working GitKraken, failing due to permissions in VS Code

I am able to pull/push to GitHub via GitKraken on my Windows 10 machine but when using VS Code on the same machine I get permission errors. Any thoughts? git remote --verbose git.stage 1 git.stage....
-1
votes
1answer
17 views

why cannot i push my laravel project to github

i have made discussion forum but i cannot push my project to github i have tried all method but it is still not working i have set ssh key in github. root@miky-Lenovo-ideapad:/opt/lampp/htdocs/...
0
votes
1answer
22 views

How to run my Spring tests before every commit/push?

Surprisingly, I was not able to find a this question on this website, so here it comes : How can I run my Spring tests before every git commit/push (CLI, GUI and IDE integration) and have this ...
0
votes
1answer
15 views

fatal: unable to access 'http://repo.***.com/***/***.git/': The requested URL returned error: 504

I can access self-hosted Git repository by browser. However, git push on command line throws this error: $ git push origin m26.12.2--insert-auto-logic fatal: unable to access 'http://repo.***.com/***/...
0
votes
0answers
11 views

Git won't successfully install for my windows WSL environment

I try and install git for my local Windows Subsystem Linux Distribution. I'm using Linux 4.4.0-17763-Microsoft x86_64 (Ubuntu 16.04.6 LTS). agrant@ANGUS-GRANT:/mnt/c/Users/agrant/Documents/GitHub$ ...
0
votes
1answer
11 views

Git merge request to branch which is a source branch of another merge request

Let's say I have a situation like this: | _| | task2 _| | task1 | | master And task1 branch is already on merge request to master. Then, I want to merge task2 as well. I select target ...
-2
votes
1answer
25 views

Is there a faster way to update all the commits Author in the **master** branch?

I need to over-write/update Author in my entire master branch git repo. I know I can do this one by one git commit --amend --author="John Doe <jdoe@outlook.com>" --no-edit git push -f but ...
0
votes
0answers
18 views

How do I make git branch work when some git file or directory lost?

One day I change a vim configuration from Github(http://github.com/ma6174/vim) on Linux(Visualbox Ubuntu), then some git orders doesn't work.e.g.: git diff diff-so fancy | less --tabs = 4 RFX: 1: ...
0
votes
2answers
31 views

.gitignore file not ignoring VS files [duplicate]

I have inherited a Visual Studio project, and the git repo did not include a .gitignore file. I downloaded the one located here http://github.com/github/gitignore/blob/master/VisualStudio.gitignore ...
0
votes
0answers
9 views

Excluding folder while migrating a repository from svn to git

We have a big svn repository. In our repository there is a big operative system directory. I want to migrate repository using git-svn to git but I want to exclude this particular operative system ...
0
votes
0answers
7 views

Clone PR using java program or JGIT

I wanted to clone a specific pull request using java JGit API. Does anyone have an idea about it? Or any alternate way to clone Pull request using java program. Let's consider below is the code to ...
1
vote
2answers
19 views

How to copy my bitbucket project to another bitbucket server

So I'm trying to move my project from one bitbucker server to a new one. On this new server the project is already created with the first commit, so at the moment I'm just trying to "refresh" it with ...
0
votes
1answer
16 views

git submodule in submodule with shared dependencies, in a C# project

I have this following scenario: a core lib, let's call it A. a features lib, we'll call B. B depends on A. a tool, called C, depending on A and B. A is shared across many projects. B is shared ...
0
votes
0answers
20 views

Git Clone not working: No such file or directory

I'm trying to clone a private GitHub repository, but somehow it's not working. Unfortunately I couldn't find anything that helps online. I hope somebody on here is able to help me. Bizarrely, I don'...
0
votes
1answer
18 views

Running “git stash apply” after “git stash save --all”, doesn't recover the tracked files but only the untracked ones

I have run git stash save --all "XXXXX" to stash some tracked files and one untracked file. After that, I have run git stash apply stash@{0} but the only file that has been recovered is the file that ...
0
votes
0answers
6 views

Disable 'Open Changes' buttons in GitLens (Visual Studio Code)

I am using Visual Studio Code with GitLens. After adding GitLens, the tab bar containing my open files suddenly has a few extra buttons for e.g. 'Open Changes', 'Open Changes with Previous Revision', ....
0
votes
0answers
13 views

--depth parameter set as global configuration

due to some security restrictions I have to use --depth parameter so it does not try to use gzip as Content-Type while POST to git-upload-pack ( long story, does not really matter ). Using --depth=1 ...
0
votes
1answer
36 views

Every time I modify something on my android studio project git hub is full of changes

Every time I modify something on my Android studio project (flutter), on GitHub I have more than 300 changes, more or less all around the 'build/" repository of my project. Also, I don't know if it's ...
-1
votes
0answers
16 views

In a Gitlab repository, how to inherit some files from another repository [on hold]

On Gitlab, I've created a shared repository for all my projects that contains, swagger files, libraries ... etc. And I want to inherit those files in all my repositories so that modifications will be ...
0
votes
1answer
22 views

Is there any difference between “git push -d remote branch” and “git push remote :branch”

There are two ways to delete a remote branch in Git: git push -d remote branch git push remote :branch I wonder if there's any difference. Per my understanding, the first command explicitly tells ...
-1
votes
0answers
22 views

How to resolve repo not found in git and github? [on hold]

I am trying to give command from my terminal to github but the result is showing an error. While the hello_world repo is deleted and I am trying to put in another repo called DemoApp. The error is ...
-5
votes
0answers
21 views

how to create batch file for sync git automatically [on hold]

I need to create a batch file for sync automatically Git Source code. help me plz. sometimes I am lazy and need to do that automatically for example run cmd file and all folder in my git sync and ...
0
votes
0answers
16 views

Why do I on git get ssh_exchange_identification: Connection closed by remote host?

Cloning a repo form the terminal: git clone git@github.foohost.com:barrepo.git Cloning into 'foorepo'... ssh_exchange_identification: Connection closed by remote host fatal: Could not read from ...
0
votes
0answers
24 views

I can't set my git global user name and email

I want to set my git global name and email. However, I could not change my global name and even recognize it. When I put git config --global user.name "HackMessi" the response was like this. error:...
-1
votes
1answer
32 views

Does creating a Git branch copy ALL of the source code?

So e.g. you are working @ Google in the YouTube team and you want to modify how the search bar looks like, or just want to change the font size, or work on a major project like the recommender system ...
1
vote
2answers
29 views

how to do a GIT branch merge by multiple people

We use stash(i.e. bit bucket) We have multiple developers in OUR team who are specialized in different modules in same GIT repository code. And modules are in different directories. Also there are ...
1
vote
1answer
16 views

Is there something i can do the changes and reflect in all the local branches without pushing/Commiting

I deleted some files in my local and i shouldn't push these changes. Now i want these changes in the local when i switch the branch. Is there a way to do that. I tried git stash and git pop. But this ...
1
vote
1answer
26 views

Git: disable read access on a per-branch basis for individual git users?

Summary How can our team disable branch "read access" for individual git users? Does the market offer any existing tools for self-hosted environments? Or is there some other, better means to provide "...
1
vote
0answers
21 views

How do I use someone's pull request in React Native?

I want to use this pull request but don't know how to go about it at all. Can anyone explain?
0
votes
0answers
14 views

Wordpress child theme and git workflow

I'm building a blog and I use Wordpress 5 to do this. All of my code is in the child theme folder, so here is what I did : I gitignore everything except this folder. I don't want to track everything,...
1
vote
2answers
33 views

How to identify if a recent pull had changes inside a directory

I currently have a git project with the structure: z.txt foo/a.txt foo/b.txt using bash how can I identify after running $ git pull that either a.txt and/or b.txt (i.e anything under the foo ...
0
votes
1answer
26 views

How to avoid publishing a feature branch too soon, while keeping it current with development?

Our team has a master branch which is the code that's in Production. We typically have multiple feature branches that are being worked on at a time. Each derived from our master branch (production) ...
0
votes
1answer
29 views

Git - what is a correct way to fork a software

I would like to create a light fork of an opensource project. The fork would basically consist of very few small patches on top of it. But I'm not sure how to technically do this. Currently, I just ...
0
votes
1answer
26 views

Git: create fork of project after having worked on a clone of that project

I am currently working on a project in which I have the reporter rights (not allowed to push etc.). Unfortunately I did not create a fork, but cloned the original one on my machine and now I am ...

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