Git is an open-source DVCS (Distributed Version Control System).

learn more… | top users | synonyms | git jobs

1
vote
0answers
4 views

bash “clear” command behaving strangely after git-credential-osxkeychain installation

I am a new web programmer setting up a Rails environment on my MacBook Air (Mountain Lion). I have just started Hartl's Rails tutorial. I have installed the latest version of git and I used the ...
2
votes
0answers
14 views

What sbt plugins are available for frequent (multiple times per day) releases of a project from git?

Our startup has about 5 scala projects for which we frequently need to push updates to production. Because of our rapid pace, I quickly found the sbt release plugin to be too much overhead and thus ...
0
votes
0answers
12 views

How to get list of changed files since last build in Jenkins/Hudson with git/gerrit

Is there any mechanism I can get the changes between two builds in Jenkins in git/gerrit environment, I am getting all changes using all changes plugin, but I want get a nice set of change between ...
2
votes
1answer
40 views

Determine relationship between commits

In a linear history, two commits A and B can have one of three states: A and B are the same commit A strictly before B B strictly before A Git's nonlinear history allows for four additional ...
0
votes
1answer
24 views

Making git-shell interactive

I'm setting up a git server (on a RHEL 6 box). I have created the git user and set its shell to /usr/bin/git-shell I have created a directory git-shell-commands in the user's home (/home/git) and ...
1
vote
2answers
22 views

External folder inside the repo

I have an images directory located outside my theme folder. And I have pushed my theme directory to github. The location of the image directory is rational at this point, since I want the site to be ...
1
vote
1answer
17 views

git pull will move the local branch to the latest commit?

I have a local branch, which is topic, this branch is labelled on the latest local commit, for example commit version 3, I stay on topic branch, not master branch, then I do the git pull, there are ...
0
votes
1answer
6 views

post-receive hook calls an executable: cannot execute binary file

The setup: have a remote git repository on a LAN server (linux) this repository can be accessed through samba, and through ssh. Both of these access methods are used for various developers, and all ...
0
votes
1answer
10 views

Git: Diff a list of files

Is it possible to add a list of files somewhere to a changelist or file or something, and to run git diff commit1 commit2 myListOfFiles and to get the diff of just that list of files? Or is it ...
1
vote
3answers
22 views

Revert one change from the diff

Before committing, I see with git diff that I've made a change that I would rather not have made. Is there any way to revert this single change? I suppose that I could use git add -p to commit the ...
0
votes
1answer
27 views

Git ignores directories named “temp”

I've added nginx to a git repository, but the apparently very much needed temp directory is never cloned or pulled to other repositories. All the other directories added at the same time are fine, ...
0
votes
1answer
20 views

Simplify long path/to/repo.git when cloning with git

The git repositories I have on my server (Debian-based) are stored in /var/git/repositories. So when I want to clone one of my repositories from my server, I have to do: $ git clone ...
0
votes
1answer
36 views

Handling Go Git repositories and its non-code resources

I'm new to Go and I'm struggling to find the best way to handle Git repositories. At this moment I'm using the Go's official proposed directories structure, but I think it has many pitfalls. It's ...
0
votes
2answers
30 views

Changing a Github pull request

As a newbie to Github, I've just submitted a pull request. The owner of the project is pretty happy with my additions but they're not quite perfect and need a bit of changing. How do I proceed from ...
1
vote
2answers
12 views

Git server hook to silently ignore changes to specific files

On a central git repo, I need to ignore changes to specific files when they are pushed to the repo. I don't want to reject (fail) the entire push, but simply ignore those changes. Is there a git hook ...
0
votes
2answers
16 views

How to perform better document version control on Excel files and SQL schema files

I am in charge of several Excel files and SQL schema files. How should I perform better document version control on these files? I need to know the part modified (different part) in these file and ...
3
votes
1answer
23 views

Unable to run git diff on a file that has moved

Ok the scenario is as follows . . . Move a bunch of files under a new folder in GIT Now I want to view the commit history of one of those files Normally a git log filename would suffice Since the ...
0
votes
1answer
16 views

Moving a directory to another git repository while retaining relevant history

I have a git repository containing multiple components, each in their own directory. I now want to put each component in its own git repo. A requirement here is that the git history is not lost, so ...
2
votes
2answers
21 views

Efficient way to manage a git repository for local config files

I store my config files (~/.bashrc, ~/.emacs, ~/emacs, etc.) in git. The way I configured this was simply to add a git repository in the home dir. I found this approach has some problems: git gui ...
1
vote
1answer
22 views

Gitlab's API (GET /projects/:id/repository/tree) throws 404 page not found

According to GitLabs API documentation to get a repository tree via restful api call I should do the following, this excerpt is from the documentation which can be found here, it says that List ...
0
votes
0answers
22 views

Ability of Jenkins to checkin in SVN repository

I am new to Jenkins, so please do forgive me if the question is stupid. I have a project in GIT. and I have configured it in Jenkins. The same project also exists in a svn repo. Now, whenever there ...
0
votes
1answer
19 views

Test and Production server setup with git

I am new to GIT. I have one production url and another as development url to which i want to push the new code. development: http://development.myrepo.something production: ...
3
votes
1answer
28 views

Which programs do use the [github] section in .gitconfig?

I haven't looked into my .gitconfig for a while. Now I can see the [github] section in it, e.g. [github] user = <user> token = <token> I wonder what is the purpose of ...
0
votes
1answer
10 views

Can TortoiseGit manage a local repository created by something else?

I'm using GitHub for Windows, which keeps the repositories for the projects I copied locally in a special directory. I also have TortoiseGit installed. I see the special SCM icons on the project ...
0
votes
1answer
16 views

Sync local branch with the remote branch in git repository

I want to sync the local branch with the remote git branch. I tried to do git pull but it fails with the below error error: The following untracked working tree files would be overwritten by merge: ...
-1
votes
1answer
33 views

closed source version control software [closed]

Why would some people purchase closed source version control software (such as Code co-op and plastic SCM) while there are many open source software like git, Mercurial and Bazaar? Does closed source ...
1
vote
1answer
17 views

My Git installation always refers to the wrong directory. Why?

I installed and re-installed Git on my Windows8 machine multiple times. It's a long story as to why I did that. Once I installed it at C:\Git and now I have it installed at C:\Program Files ...
1
vote
0answers
35 views

GIT: get only Commit Text, Branches and some special files

I want to write a simple application to track the bugs, todos and some other information just within my git repos (so anyone that develops at that projects have always the list of todos with them) ...
1
vote
2answers
26 views

Convert local master into a branch in git

I cloned a github repository and made several commits locally. I accidentally made these commits on the master branch when I had intended to make a separate branch for my changes. Is there some way to ...
0
votes
2answers
36 views

changing git comment of a pushed commit

Is there a way to change the comment of a particular old(not latest/one behind) commit which is already pushed to the remote repository in git? There are no changes in the content of the commit. I ...
0
votes
1answer
30 views

Git diff is complaining, “external diff died, stopping at … ” with my python diff program

Here's the beginning part of my diff. #!/usr/bin/env python import fileinput import difflib import subprocess import sys # for debugging def info(type, value, info): import traceback ...
0
votes
1answer
22 views

How to make git diff write to stdout?

By default git diff prints all +- lines to the stdout however I have a (devian) machine (which I connect through ssh) where git diff leads me to an editor (which I don't know which is) and I need to ...
0
votes
1answer
21 views

Git diff without the pluses and minuses

Is there a git way of outputting a diff without the pluses and minuses on the beginning of each line? (of course relying only on the color to indicate the operation) I tried using sed to remove them ...
0
votes
2answers
11 views

Git push branch from different checked out branch

Can you 'git push origin branch1' while you have branch2 checked out? git checkout branch1 git commit -am 'changes 1' git checkout branch2 git commit -am 'changes 2' git push origin branch1 Will ...
1
vote
2answers
22 views

gitlab-shell push fatal error

I am having problem in getting my initial repo pushed to gitlabhq server using gilab-shell. Earlier I had setup gitlabhq (2.1) + gitolite that is working fine. ssh -T [email protected] Welcome to ...
0
votes
1answer
19 views

GIT scanning .gitignore directories

I have a server setup that deploys code with a read only git user. We just moved one of the subdirs to the fuse S3FS which is slow but perfect for our needs. When running git pull now it is scanning ...
1
vote
2answers
38 views

Git: Failed to erase credential: Element not found

I'm trying to set up Git on a fresh machine, and I'm having trouble authenticating with my remote repository. I have limited experience with Git, but I have successfully done the following before: ...
-1
votes
0answers
19 views

Gerrit access control

I am a end-user trying to test Gerrit configuration available to my team. We have 3 usergroups: Submitters, Approvers and Integrators I would like the master branch to be touched only by the ...
0
votes
2answers
38 views

Fetching a remote branch without local changes

I'm trying to fetch a remote branch onto my machine without any local changes. For exmaple, if the two repositories look like this: Remote: master: A -> B -> C -> D Local: master: A ...
1
vote
1answer
45 views

How to turn subfolder into repository in git? [closed]

Our company have git repository like this: app ├── project1 ├── project2 ├── projectN └── solution.sln I'm interested only in project1 and want to make my repository with project1 and mess with it ...
0
votes
1answer
34 views

Deploying Meteor to Heroku with Git

I was following the instructions found here, and I got through the first 8 steps no problem, but this one I don't understand: Add the Heroku Git repository as another remote to your git repository ...
2
votes
1answer
28 views

git commit comment per file

I am new to git having previously used Perforce, SVN, source safe and many other source control tools. I am looking for the functionality that I used to use in Perforce where I could construct a ...
0
votes
1answer
11 views

Handling git on a shared user account

I'm using git to track changes to a series of system configuration file on a server. These files are owned by the root account (and for various internal enterprise-y reasons, root is the only account ...
1
vote
3answers
24 views

How do I take git repo and make a new project based on it

I have git repo of an iOS project on github and want to duplicate it and make a new project based off it? How can I do that? Branch then ??? I don't just want to branch I want an entirely new ...
-1
votes
1answer
19 views

How is it that Git has no changes to merge after fetching them?

Git seems to be ignoring the results of a fetch and is unwilling to merge them for some reason. I'm working on two repositories, in order to look after changes from someone who doesn't use git. One ...
0
votes
3answers
27 views

how to obtain a JSON representation of a Git/GitHub reposity

I'm working on a prototype of a game that will use the information of a Git repository, its branch, merges, etc, as a source for the game's levels. Is there a way to get a Git repository 'history' ...
3
votes
0answers
11 views

Why would git-upload-pack (during git clone) hang?

I've read several other 'git hangs on clone' questions, but none match my environment and details. I'm using git built under cygwin (msys git is not an option) to clone a repo from a Linux host over ...
1
vote
1answer
19 views

git (sourcetree) go back to commit that has not been pushed and was 'reversed' accidentally

I'm still quite new to git revisioning and maybe just lost plenty of work (but I hope there is a way to go back, that's why I'm asking here). I use SourceTree on OsX for git revisioning. I didn't ...
0
votes
1answer
34 views

Code review tool with IntelliJ and Git integration

We use IntelliJ to edit code and Git for version control. We need to review the code before committing the code into repository. What code review system supports IntelliJ and Git?
1
vote
1answer
14 views

git apply changes from one commit onto another branch

I want to do something similar to git rebase but without collapsing parallel commits. Let's say I have the following commits: B (bar) / A-C-D (foo) Now I want to take the changes that D ...

1 2 3 4 5 560
15 30 50 per page