Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. Do not use this tag for general programming questions that happen to involve a Git repository.

learn more… | top users | synonyms | git jobs

0
votes
0answers
6 views

Send all actions on self-hosted GitLab to a service

Is it possible to send all actions / builds that happen on my self-hosted GitLab instance to a service like Slack or a plain webhook? This would be a lot easier than setting up a service for every ...
1
vote
2answers
22 views

Rebase branch against origin/master in IntelliJ IDEA

When developing feature on branch I'd like to rebase it frequently with origin/master. The option Update Project... (CTRL+T) would be great, as it can be configured to do stash, rebase and unstash. ...
4
votes
3answers
38 views

How to create a feature branch and reset to origin/master in a single operation?

I often start my journey with a small fix on the master branch that eventually appear more complex than initially thought. So I easily fall in this situation: * Damned I have more stuff to check (...
1
vote
1answer
17 views

Shortcut to “New Branch” popup in IntelliJ

I'd like to setup keyboard shortcut to create new Git branch in IntelliJ IDEA. I've tried assigning shortcut to the following action: However, at least in IDEA 2016.3, this action doesn't perform ...
1
vote
3answers
19 views

Git : merging to master branch , add files or pull?

Hello I am working my codes in Git. I made an extra branch to work on and I finished my job. Meanwhile, on the master branch new stuff gets added to it. If I want to keep my work and get the "new ...
0
votes
1answer
25 views

How to merge conflicted files to my repository

I have a master repository that is used by two users, now when I push my code it warns me to resolve conflicts. I want to merge my code into the existing code with git commands but I don't know how ...
1
vote
1answer
14 views

Problems using GIT w/ SSH key file under Windows

I've problems using GIT with the shell, Visual Studio Code and Visual Studio 2015 (community edition). Earlier this year I started using GIT with eGit (under Eclipse of course) without any problems. ...
0
votes
2answers
13 views

“fatal: tag 'someTag' already exists”, when trying to add a tag to old commits

Question Why can I not add a tag to two older commits? git tag -a matlabTest cfa84dbb6dd3c2c9956421e723d2f99786f7b417 git tag -a matlabTest 45b3a4d83eece8a5adcb947392f15a14bd4b0e63 Instead I am ...
0
votes
1answer
23 views

In Git, version information is not stored in header, is there way to know the file on customer instance before fixing the issue to ensure correct fix?

I am using GIT version control. Here is what I want to accomplish Customer A identifies a defect in the product and logs an issue#1234 Developer wants to know the file (sample.sql) on customer A ...
0
votes
0answers
6 views

LSD-SLAM NOROS on Windows. No PointCloud

Has anyone tried building this git repository (https://github.com/aivijay/lsd_slam_noros) which lets you build a LSD-Slam program on Windows that's independent of ROS. Problem is that I was able to ...
1
vote
1answer
19 views

Git: reset to a too old commit, and git log , only show from the commit I have now

Today I use git, commit , the info is: 2016-11-25. and after I do something wrong, I reset back to a old commit which info is:2016-10-18 careless. and now I want to go to the 2016-11-25, but when I ...
-1
votes
1answer
18 views

Which git commit this codebase is derived from?

As a consultant I often find myself in the situation where I inherit a mess of a code base, started from a git clone or dev tarball at an unknown point of time. How do I find which commit it started ...
0
votes
1answer
18 views

Excel Workbook - Sheet Sync / Version Control

Let's say I have a workbook with two sheets: A and B. I'm looking for a simple version control system that would allow two users to work on one workbook and keep it in sync. So, User 1 works on ...
0
votes
0answers
16 views

Remove test dependencies from R package

I'm developing an R package that has a shiny app as part of it. I have been trying to add testing for the shiny component, which means that I now have dependencies required for that testing. However, ...
1
vote
1answer
20 views

How to go back to latest remote commit git

I had to go back to an earlier commit of my code locally, so I used git reset --hard <tag> to go back to that commit, how do I now go back to what the latest commit was (according to the remote ...
1
vote
1answer
17 views

How to automatically download the same 8 repos for every from another 4 repos in a git?

We have 4 repos with executables and when I clone any 1 of them, I want to also clone all of the 8 repos with libraries to the folders next to the executable folder. The executables are something like ...
0
votes
1answer
25 views

Unexpected Git commit author

I have a fork of a public project in my GitHub account, and I created a new branch from my repo master in Intellij. I applied a patch with the changes I needed, committed and pushed to my branch. ...
-1
votes
1answer
14 views

Cannot make changes in master after testing appear in gh-pages

I am using firebase serve within my master branch to run a server and test my changes to some HTML files. When I change these files, when I am happy, I would like those files to update in my gh-pages ...
0
votes
0answers
14 views

How can I track text files with proper line endings normalization using git-lfs?

I have a repository to which I would like to add large text data files. Due to their number and size (which can be up to approximately 100MB in some cases), I would like to track those files with git-...
0
votes
1answer
7 views

capistrano 3 does not pass $USER to remote ssh

In Capistrano 2, one could set the repo URL to include the login user name like: set :repo_url, "git+ssh://#{ENV['LOGNAME']}@myrepo.example.com/path/name" The purpose of doing this is that $LOGNAME ...
2
votes
0answers
15 views

Prevent git apply from deleting old files

I have two files a and b, each containing their name. I create a patch like this: git diff a b > test.patch Now when applying the patch, file a is deleted: git apply test.patch Is there a way ...
1
vote
2answers
40 views

How do I tell .gitignore (or git itself) to ignore lines containing # TODO

I have a lot of lines with # TODO for future references. These are personal, and I'd like to not commit them along with the rest of my file when I make changes. Is there any way to tell .gitignore (...
-2
votes
0answers
15 views

How to Work Seamlessly Between Development, Staging, and Production Sites in wordpress [on hold]

I am looking for a solution to stop coding like a cow boy on WordPress. I want to put a versioning system (git or bitbucket) With a Development, Staging, and Production site. Something like this dev....
2
votes
1answer
26 views

How to change the text editor in git to Sublime - currently git commit commands are opening in Notepad

Despite similar questions that have been posted in the community, I have not seen this specific question addressed. I am trying to change the default text editor used by git to Sublime. I am using a ...
1
vote
1answer
49 views

Mercurial commit only modified and deleted files

What is the mercurial equivalent of git commit -a to avoid specifying all the files in each commits? Thanks
1
vote
1answer
20 views

Git commands with pexpect: Terminal not fully functional

im currently working on a program, which should control a git repository through pexpect. Simple commands like git status are working, but commands like git diff --name-status ... don't. I get the ...
0
votes
0answers
11 views

Force Jenkins to rebuild all branches in MultiBranch Pipeline project

I would like Jenkins to rebuild all existing git repository branches after scheduled branch indexing even if there were no changes since last build but right now I can do that only manually. Checking ...
0
votes
2answers
20 views

TortoiseGit: checked out earlier revision, now revisions after that one are not shown in the log

Say I had 4 revisions - A, B, C and D, in order from newest to oldest. I clicked "Show log" in the TortoiseGit context menu, right clicked C and clicked "Switch/Checkout to this". In the window that ...
-1
votes
1answer
15 views

Why cannot GIT remember my SVN setup

I have a git repo which I've cloned to my local computer: $ git clone ssh://[etc ...] I have also cloned a svn repo with the help of git svn: $ git svn clone https://[etc ...] Going into the svn ...
0
votes
0answers
19 views

Files deleted between git revisions are automatically getting deleted from instances

Background I have a setup triggered by Jenkins with the following - the files to be deployed are prepared by phing, by talking to git, without the involvement of AWS code deploy (as far as I think)....
1
vote
1answer
19 views

List unversionned files added after a specific date

Using a git repository : Is there a way to list all the unversioned files that have been added (created) after a given date ? Edit : I'm on a windows machine. But I can use command such as grep or ...
0
votes
0answers
13 views

Jenkins: S3 Copy Artifact Build parameters not supported in project name field

In our jenkins Configuration, we have two Projects One Project(Multi Branch Free Style) is used to build .Net project and puts the artifacts on S3 bucket. The other project (Multi Branch Free Style) ...
0
votes
0answers
7 views

Using SCons to initialize and update Git submodules

We use SCons and Git submodules to organize and build a software stack. We have several application developers who use our stack to build their applications on top of it. In order to minimize the ...
1
vote
3answers
30 views

Git says that a deleted file would be overwritten by merge

When I'm trying to git pull it won't let me, saying that local changes would be overwritten by merge. The thing is that the file it specifies, that it would be overwritten is deleted. I had it before ...
0
votes
1answer
19 views

Shall I commit solr file?

I have added the full text search by sunspot gem and apache solr. I got many new files in my project. I don't know, is it right, but I commited this files: solr/configsets/sunspot/conf/_rest_managed....
-1
votes
0answers
18 views

Eclipse pointing to wrong jdk version [duplicate]

I think my Eclipse is pointing to an old java version. For an exercise at university, i need to clone a repository and import it into eclipse via maven. This worked for the first exercises without ...
1
vote
0answers
21 views

git clone from bitbucket error curl 18 transfer closed with outstanding read data remaining

I have Ubuntu 16.04. I'm trying to clone a repo from bitbucket using a bash commandline with curl. However, I get a curl 18 error. What should I do?
1
vote
1answer
41 views

why gitlab refuse push pdf file?

I'm stuck the problem a whole day when push my project to gitlab.Finally, I find it push success when ignore *.pdf. I have test a single .pdf file can't push to gitlab.Error like this: $ git push ...
7
votes
3answers
37 views

git fetch branches with specified prefix

I have following branches in remote origin. ft_d_feature_abc ft_d_feature_xyz ft_d_feature_lam ft_d_feature_ton ft_m_feature_mak ft_m_feature_echo ft_m_feature_laa ft_m_feature_pol I want to fetch ...
0
votes
0answers
10 views

Rename branch in Gitkraken?

How do you rename a branch in Gitkraken? I know how to do it from the CLI, can you do it from the GUI (or terminal - if there is some - in Gitkraken?) Thanks!
-2
votes
1answer
14 views

Create local respository using git same as remote respository (Local git server same as remote)

I am new to GIT I have a remote git repository. I want to create a local repository which is same as remote (with all branches and tags same as remote). I want to test my git commands on my local ...
-3
votes
0answers
28 views

git push cannot finish Use SSH protocol [on hold]

In my Eclipse project folder, I followed the steps of this tutorial: $ cd /opt/git $ mkdir project.git $ cd project.git $ git init --bare This initialized an empty Git repository in /opt/git/project....
0
votes
1answer
22 views

Checkout remote git branch if exists else clone master make new branch and push

Sorry for the verbose title. In fastlane, using the programming language Ruby, I want to have this functionality: if remote_branch_exist git_clone_remote_branch else git_clone_master ...
0
votes
1answer
14 views

Which user settings should I add to version control if I am the only person using the repo?

I have a very similar gitignore to: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore Given that I am the only one that will use the repo and I want to have the same settings on ...
0
votes
0answers
13 views

How do I revert commit form log view in tig?

Tig manual has the only way to revert files mentioned, which is "!" shortcut. It works in status view for me. But is there any way to revert commit from inside a log view? I'm using the latest ...
1
vote
3answers
27 views

Git: staging area workflow

What's really git staging area for? I'm used to work only with unstaged files and when I think everything is fine I stage them in order to build the commit. Nevertheless, I guess that it's there for ...
0
votes
0answers
10 views

TortoiseGit icons overlays icons on desktop

TortoisGit always overlays my desktop-icons (after a variable time of working) with icon-overlays from TortoiseGit wrongly, although the desktop-folder isn't a git-project folder. The problem occurs ...
0
votes
2answers
28 views

git commit shows untracked files

I want to commit my files and type this command git commit -a -m "all base files" it shows some untracked files that contains files I want to track.. I need to commit html files, checked ...
0
votes
1answer
19 views

Remove commits from an existing pull request

I forked a project on Github, made a commit, pushed to my fork and made a pull request. All good to that point. Then, I kept committing and pushing unrelated stuff unaware that all of that will be ...
0
votes
1answer
20 views

Git merge overwrites rather than giving conflicts

I'm trying to merge two repositories. But whenever I merge, it should give conflict in sample.txt file rather that overwriting the same. Steps followed are in attached image.Git version is : 2.7.4 Is ...