Git is an open-source DVCS (Distributed Version Control System).
learn more… | top users | synonyms | git jobs
0
votes
0answers
2 views
Using Coda 2 built-in git
I have went through a lot of tutorials and Q&A on web but I cannot find a solution anywhere. This is what I did:
Install Git
Go to Coda 2 Preferences -> Files and set the Git Tool Path found is ...
1
vote
0answers
10 views
Managing Multi-Project Branches in Git
As you know, Git recommends using the repository-per-project structuring paradigm. At the same time, any serious project, in our case Maven-based, is attached to several in-house libraries. During any ...
0
votes
0answers
13 views
How do I commit case-sensitive only filename changes in Git?
I have changed a few files name by de-capitalize the first letter, as in Name.jpg -> name.jpg. Git does not recognize this changes and I had to delete the files and upload them again. Is there a way ...
0
votes
0answers
5 views
git bash: error: RPC failed; result = 18, HTP code = 200B | 1KiB/s
When I try to clone on git bash, I receive this error:
$git clone <link>
Cloning into 'name_project'...
Password for '<link>':
remote: Counting objects: 100% (659/659), done.
error: RPC ...
0
votes
0answers
13 views
How to escape slashes in git filter
I'm trying to delete all lines with comments in a file from a commit with git's filter. Concerned .git/config file looks like this:
[filter "printlnignore"]
clean = sed '/\/\//d'
smudge = cat ...
0
votes
0answers
24 views
Undo git pull from remote branch on a fresh git repository to a state before git pull
In short:
Can I reset my code to a state before I do a git pull after pulling code from remote branch on a fresh git repository?
Long story:
I have two folders containing scripts, one folder ...
0
votes
0answers
3 views
Download private BitBucket repository zip file using http authentication
I'm currently making a script that I'll use to easily deploy my application, and the code for the application is stored on a private BitBucket repository. I'd like to be able to make an http request, ...
0
votes
1answer
13 views
Custom diff for git and binary file
I have a binary file format that I include in a git repository. I know the file format of the binary and could conceivably create a diff like tool for them that would produce a text output so I could ...
0
votes
1answer
32 views
Hiding files from git— possible without adding to .gitignore?
I have a couple of files I've just added to a directory that's part of a git repo. I'd like to hide them from the repo.
I could add them to .gitignore but is there another way? These are one-offs ...
0
votes
0answers
5 views
Automatic Xcode Git Commit Prompts
I easily forget to regularly make local git commits, and so i've developed the bad habit of having a few very large commits. I'd really like to make lots of small commits. Largely so the messages are ...
0
votes
1answer
8 views
Bisect to find the commit that _fixed_ a bug
The normal use case for 'git bisect' is to declare the tip of the reference the 'bad' state, and search the history for the lastest 'good' state. This makes sense when searching for a commit that ...
0
votes
1answer
24 views
Public access on my own git server
I create my own git server following the official how-to. SSH access works perfectly while my computer SSH key is on the server. But I'd like to add a public access (to be able to do git clone ...
0
votes
2answers
15 views
git svn does not fetch directory
My svn repo contains (among others) an empty directory called nativeLibrary. From my local git workspace, git svn rebase does not grab it. It also does not come with a fresh git svn clone.
...
1
vote
2answers
51 views
Why is a file still in repository, even though I've deleted it?
Is there a way to tell why is Git holding onto a file, even though I believe it has to let it go? I'm trying to rewrite the commits history by removing large files. Here's what I did:
git ...
0
votes
1answer
5 views
gitosis clone submodule .git directory missing
When cloning submodules from a gitosis repo, I got all files except for the .git directory. .git directory is missing. Instead, I got a single .git file. I use git submodule init and git submodule ...
0
votes
0answers
17 views
Is there a git config to auto-resolve merge conflicts when pushing?
Is there a config that tells git to auto-pull-and-merge when pushing?
$ git push
<takes a few seconds>
<grabs a coffee>
error: failed to push some refs to ...
0
votes
1answer
25 views
Will merging a Git branch with deletions also delete files in master?
I use Git for my project version controlling. Now I'm working on a minor feature that doesn't depend much on the code base. So in order to develop the feature, I created a new branch based on the ...
0
votes
1answer
15 views
missing unstaged files in egit using eclipe form existing project
I want to make a git repository for my mod i am trying to make. I created a github remote repository and now want to create a local repository to then push to github so that I can share it with some ...
0
votes
1answer
18 views
Storyboard does not open in a specific Laptop
My team has a project and we are updating our codes by pushing/pulling it on bitbucket.org. We encountered a problem lately, we cannot open the storyboard of the pulled updated project code.
This is ...
1
vote
2answers
29 views
Discard commits to master that have been pushed upstream
On a new project, with a team new to git, we started out committing directly on master. We accidentally made a few bad commits on master that were pushed to a central repo and pulled down by the whole ...
0
votes
6answers
60 views
Git: remove earlier commit but keep recent changes
I got some commits in my repository:
like:
A - Added Feature A
B - Removed Feature B
C - Redesigned Feature C
D - Added Feature D
E - Added Feature D
Where E is the most recent commit I made. Now ...
1
vote
2answers
15 views
Cloning GIT repository by ANT
I am working over GIT cloning with help on ANT.I am using the below code for it :
<target name ="deploy">
<sshexec host="ssh://user@rep_location/project_name.git"
username="username"
...
1
vote
2answers
16 views
effects of initializing git repository on linux root directory 3:)
I am running beaglebone black on ubuntu installed on sd card. i am learning to program the device in trial and error method by installing various packages (just like CERN guys study sub atomic ...
0
votes
1answer
21 views
best practice: storing django models (db) in repository
I have some django models which are take quite long to create and I would like to know what is the best way of storing them in a repository such as git.
One way would be just to serialize them and ...
1
vote
1answer
32 views
When should you use 'git pull origin' and when should you use 'git pull origin master'?
I normally switch to a branch and do
git pull origin branchname
or if I am on master then I do
git pull origin master
However, I saw a few places suggesting to always do
git pull origin
Are ...
1
vote
1answer
37 views
What exactly does git download when you clone and how to reduce the size of it?
I'm looking forward to reducing the download times for people who will be using my repository overseas. I've now received complaints about this being too slow.
I've ran a script on the repository to ...
1
vote
1answer
16 views
git repository clone failed. Connection Reset
I am using Bit bucket as my hosting site for the distributed version control systems (DVCS) Git.
While Cloning the project and bringing into my eclipse it is giving me the error:
Git repository ...
0
votes
0answers
17 views
Tortoise GIT: go back to previous version
I have installed Tortoise GIT. I've commited an initial version of my files. But when I do a change and commit again "right-click -> GIT commit: master", in the log I only see my actual version and ...
1
vote
2answers
13 views
Eclipse git saying Connection Refused
I am trying to clone a git repository in Eclipse stored at a server (connected to my system via LAN).
This is what I am filling in the Import Projects From Git dialog:
the repository is stored at: ...
1
vote
2answers
27 views
Git Remove remote history
I am using laravel 4 framework and in order to stay up to date I have added a remote called upstream that points to the framework repo and ran git fetch. The problem is that it pulled the whole ...
0
votes
1answer
28 views
folder size mismatch when cloning a git repo
I created very large git repository. Following are the commands I used (creating repo, checking folder size & sharing over network),
>git init
>git add .
>git commit -m "Initial commit"
...
0
votes
1answer
23 views
Download git master repository in php
I would like to download the git master.zip to a directory in php code. I am using cURL to download it and the code I have works, so that aspect is working. I am wondering how to get the correct file ...
-1
votes
1answer
28 views
Git log - two dates in different format?
How can I set up date formatting in git log output so that dates appear in different formats?
hist = log --all --graph\n--pretty=format:'%Cred%h%Creset %ad -%C(yellow)%d%Creset %s %Cgreen(%cr) ...
1
vote
1answer
28 views
Git: How to create a new branch but somewhat different project
I am going to update my Rails3 project to 4 and at the same time have a clean start project all together. So my solution is to create a new rails4 project and just transfer one by one, what I need in ...
0
votes
2answers
14 views
Git: stylesheet and javascript conflicts
We use git as version control, the way that we use it is as following:
Our main branch is production for every new issue or upgrade the developer should create new branch from production branch, ...
2
votes
1answer
33 views
Git, How to reset origin/master to a commit?
I reset my local master to a commit by this command:
git reset --hard e3f1e37
when I enter $ git status command, terminal says:
# On branch master
# Your branch is behind 'origin/master' by 7 ...
1
vote
2answers
47 views
Find which branch is used to create current branch in Git?
I'm working on a project which is also worked on by a big team. As time passed by, people have been creating branches and pushing them to a remote repo.
How do I know which branch was the root of a ...
1
vote
1answer
28 views
github ssh public key not found with node.js child_process.spawn() on windows, but visible on child_process.exec()
This code works on Windows and on Mac OS X:
var exec = require( 'child_process' ).exec
exec( 'git clone [email protected]:user/myrepo.git' )
But this code returns an "Access denied(publickey)" error ...
1
vote
0answers
36 views
How can I get the SHA of a GitHub commit in Java?
I'd like to know if there is a hacky method to obtain a commit SHA of the latest commit of a branch in a particular GitHub repo in Java. As far as I have seen, the GitHub API only has a hook to access ...
0
votes
1answer
28 views
Best workflow for software development with many release versions
We are currently changing our workflow with git to avoid the maximum of errors and regressions...
I read this one : http://nvie.com/posts/a-successful-git-branching-model/
To make a short summary :
...
0
votes
1answer
36 views
Shelve local changes and get latest with git cmd [duplicate]
New to git
I was making rather large changes in the main branch of our project which are still local to my machine. My friend just committed some large changes to our project in the main branch.
How ...
0
votes
2answers
44 views
How can I setup a git repo on my box?
I'm trying to setup a remote git repo on my box. It's unexpectedly asking me for an ssh password, because I have public keys setup and can connect via ssh regularly.
How can I setup a git repo?
1
vote
2answers
24 views
Restructuring Files in Git Repository
I have a Git repository with the following folder structure:
allprojectfiles
--otherfolders
--source
----projectname
------projectname
---------git initilalized here
---------otherfolders
...
0
votes
1answer
16 views
Messed up git repo: git log vs. git log -g
Background: I have a local repository that has a remote. All has gone well for quite some time. I'm doing development on a Mac and using GitX. Before the problem I'm about to describe, I had ...
5
votes
1answer
45 views
What Git operations lock the database?
Git has a variety of operations for reading/writing to their internal database. I've read that write operations are atomic in Git. However, for other operations like reads, what operations will lock ...
8
votes
3answers
91 views
How to you revert a staged file with changes, preserving the changes to when it was staged?
Say I edited a file
echo "hi" > someVersionedFile.txt
//Then I staged the file
git add .
git status
<console reads>
Changes to be committed
new file: someVersionedFile.txt
Now I make ...
1
vote
1answer
20 views
Create Merge Request Not Working in Gitlab
I just pushed a new branch "TEST" and Gitlab has the button to create a new merge request. When I click it though, it takes me to a page that asks me to select the source, and what it should be ...
1
vote
1answer
24 views
git push “Authentication Failed”
I have been using github for a little while (translation: new to this...) and I have been fine with git add, git commit, and git push so far with no problems. Suddenly I am having an error that says ...
1
vote
0answers
23 views
How to update local submodules so that they match the central list of submodules?
For a CI build of a project with submodules, I want to make sure that the working tree exactly matches the state that is submitted in the central repository.
After fetching and checking out the ...
0
votes
1answer
26 views
Using the git api to list get unmerged as opposed to merged?
using the github api is there a way to get the unmerged files ? I know there is methods for GetAll and GetMerged but as it stands they return large amounts of data and getting the diff ...