I have a git-cpan-init of a repo which yielded a different root node from another already established git repo I found on github C:A:S:DBI. I've developed quite a bit on my repo, and I'd like to merge or replay my edits on a fork of the more authoritative repository. Does anyone know how to do this? I think it is safe to assume none of ...
git - how to tell if a file is git tracked?
In other words: Is git tracking a file?
Update: I should've been clearer. Is there a way to tell if a file is being tracked by running some git command and checking its exit code?
...
I'm getting the following error attempting to clone an svn repository.
Anyone seen this before?
$ git svn clone -s https://npanday.svn.codeplex.com/svn npanday
Initialized empty Git repository in /home/kurtharriger/npanday/.git/
fatal: Not a valid object name
ls-tree -r --name-only -z : command returned error: 128
$ git --version
...
It would be really nice if there is some easy way to see what have changed in a certain class (or other file) between two releases (1.6 & 2.1 for example). Does anyone know how to do this?
A way to do it online would be great but downloading the code and checking offline would be ok as well.
...
Is there a simple way to handle binary files in git operations? I think my ideal in this case - 'merging' of .mo files (binary .po messages) - would be to give precedence to the newer file, copying it over the top of the older one.
So can I configure git to do this or is it always going to be a manual exercise?
...
I'm new to Git, so I suspect that I'm misunderstanding something here, but I'll ask anyway.
Via TortoiseGit I do the following:
Init a new Git repo locally
Add a readme file to it and commit
Add a new remote
Push the new repo to the orgin (remote)
If I then Browse Refs I see the following:
heads/master
remotes/origin/master
What I ...
I don't want to submit projectname.project folder. Now, I use like that
git add .
...
...
git push orign master
I don't want to submit projectname.project folder. When i use
git rm -r projectname.project
git remove my projectname.project in my computer and I need to create a project again.
...
Lets have 2 repositories, one containing the actual data repo and a bare repository which is loaded with deltas from the actual data repository by doing a git push from data repo to bare repo. Hope you have understood the model that am using here.
Am creating clones by cloning the bare repo, and i will be pushing from the branches in my...
Hi all. I recently added these lines to my ~/.bashrc file to show the current branch if i'm in a git working folder, and it works nicely for that. However, what i've lost is that the current folder name used to be shown in the tab for the terminal i have open, and now it isn't: it always just says 'Terminal'. Can i get that back and s...
I have directory A with files matching directory B. Directory A may have other needed files. Directory B is a git repo.
I want to clone directory B to directory A but git-clone won't allow me to since the directory is non-empty.
I was hoping it would just clone .git and since all the files match I could go from there?
I can't clone in...
I am writing a pre-commit hook. I want to run php -l against all files with .php extension. However I am stuck.
I need to obtain a list of new/changed files that are staged. deleted files should be excluded.
I have tried using git diff and git ls-files, but I think I need a hand here.
...
Given a situation where there are three branches, A, B and C, where A is merged to both B and C on a regular basis. From time to time B is merged to C. With Subversion, B apparently must be removed and recreated after every merge to C. This raises groans from colleagues, but would any alternative do any better? It would seem to me th...
Note: marked as community wiki
I code in vim.
I use git; and love git grep.
Does anyone have a particularly nice set of techniques / scripts for using git grep in side of vim?
Readers: please upvote answers involving vim + git grep; please downvote answers involving non-vim editors, and editors referring to external tools besides git...
Hi,
How to add an exception to .gitignore, like "ignore all the .dll files BUT myfile.dll"? Thanks
...
I have a bare repository I access over a SMB network. Quite often I suddenly get fatal error from clients trying to connect. Most of the time some push / pull / clone dance manage to solve it. This time, it's not even possible to clone the repos, I get :
fatal: git upload-pack: cannot find object 002d4400052e62e9047763229bef7ee69cf2c95f...
Is there any way to git pull all folders in the repository but one? I don't want to create a .gitignore file because other people may want the folder -- it's just too large for me to use right now.
Thanks!
...
I learned of gist.github.com from Mozilla Ubiquity, and have been using it to post small stuff I've written, and to keep it updated in a public place, with version control so no information is lost.
I understand the basic idea of version control, but I don't know how to use it in a practical sense. I've tried reading through tutorials ...
Given a repository served over HTTP whose owner forgot to chmod +x hooks/post-update, is there a workaround for cloning it?
I tried running wget --mirror url, but rather than fetching the subtree only, it tried to mirror the entire site—which I assume happened due to the parent-directory links in the autogenerated index.html resources.
...
How to stage and commit all the files including the newly added files using
a single command.
...
Hi guys,
I'm working on Ubuntu and want to use multiple private keys to connect to different servers or different portions of the same server (My uses are admin of server, admin of git, and normal git usage within the same server). I tried simply stacking the keys in the id_rsa files to no avail.
Apparently the way to do this is use t...