git

Undo a particular commit in git

What is the simplest way to undo a particular commit that is: not in the head or HEAD Has been pushed to the remote. Because it is not the latest commit, git reset HEAD doesn't work. And because it has been pushed to a remote, git rebase -i and git rebase --onto will cause some problem in the remotes. More so, I don't wan...

How do i .ignore files with Git GUI?

i have created a .gitignore file inn the same folder that the with the .git folder. but i still get the files i'm trying to ignore when doing a rescan of the repository. this is the content of the file. # Ignored files *.suo *.user bin obj *.pdb *.cache *_svn *.svn *.suo *.user *.build-res TestResults _ReSharper* what am ...

Redoing Commit History in GIT Without Rebase

Since asking my last question which turned out to be about rebasing with GIT, I have decided that I don't want to rebase at all. Instead I want to: Branch Work work work, checking in and pushing at all times Throw out all of those commits and pretend they never happened (so one clean commit at the end of work) I do this currently by ...

Remove and ignore all files that have an extension from a git repository

I'm working on a django project with a few other developers and we have recently realized that all the .pwc files in our app cause the commits and repository to be cluttered. Is there any way I can remove all .pwc files from all child directories in my git repository and then ignore them for any future commit? ...

"Hiding" things in GIT

Git noob here. I know this is against the principal of "distributed source control" but I want to "password protect" certain development branches in my GIT repository. That is, I don't want that branch to be available via git branch -r, except to a certain group of developers who need access to that branch, via some sort of password. ...

Using git to deploy to a cluster

I've seen many people use git (or SVN) for deploying their web app projects, be they PHP, Python or whatever. Essentially, you use pull the code from the stable branch to your local server and possible run a few migration updates. Easy. But I wondered if anyone uses git for deploying to cloud server / clusters. RightScale suggest that w...

Need a GUI based deployment solution for .net

Ok.. I have looked through this site and just can't seem to find the answer I am looking for. We have a multi server setup for our web sites, typically (DEV/QA/PRODUCTION). Our sites are .net which require some sort of build before being deployed. We are using SVN for source control and are looking for a tool/website/something that will...

How to get tags on current commit

Hi, I have a workspace which may has multiple TAGs on a signle commit ID For example commit #3 <--- TAG1 / TAG2/ TAG3 | commit #2 <--- TAG4/ TAG5 | commit #1 <--- TAG6/ TAG7 When I checked on commit-1 , I want to know the info of there are two TAGs (TAG 6/ TAG7) on current commit , but I can not find correct way to do that . I ha...

autorecording directory in git

Exposition: I do not git commit all that often; only after a lot of work. I occasionally do stupid things, like 'rm -f blah.hpp' when I mean 'rm -f blah.cpp' I use zsh I would like to set something up in my zsh precmd to do a "git add */; git commit -a -m 'auto log ...'" Now, here's the issue: alot of these commits are spurious. At...

Delphi RES files and Git

Hi! I have a big project written in Delphi and I want to manage it's sources using Git. I created Git repository, which includes my application's sources and 3rd party components. All that stuff is automatically building using msbuild. The biggest problem is RES files. Some of them are updated every time I rebuild my application, some ...

Reuse a Part of a git Repository

Hi everybody. I have the following project setup: Solution A Project 1 (a lightweight component) Project 2 (contains a lot of files and depends on Project 1) Solution A is a single git repository. Then I created another solution and found that I could reuse and even update the functionality of Project 1. So my second solution would...

How to manage a drupal website in git

Hello all, I'm a bit lost, one of my developer co-worker is doing a drupal website, that is doing special pages, custom logos, custom hierarchy etc. His work is scattered in database tables (it looks like CCK create tables), database rows (texts, image links etc.), static files (pictures, PDFs ...) and maybe some PHP (custom module). M...

git push after removing large file

I accidentally commited log/test.log but have never pushed it. I have since done a git rm to get rid of it. But when I try to push, I'm still getting a huge amount of data attempting to be transferred. Shouldn't the git rm fix that problem. If not, how could I fix it? ...

Working with git-svn: Proper workfllow

I created a topic branch from the master; made some commits. Then checked out the master; rebased it on the svn and merged the topic branch. There were no commits on the master itself, so the merge was fast-forward. Now, when I try to svn dcommit it gives me merge conflicts! wtf? Clearly there is a linear history on the master. The w...

git svn windows linux whitespace problems

Yea, right. I use git (with git-svn) on linux and a colleague uses svn on windows. So many times, git reports whitespace issues. In fact it fails to commit a linear history because of these problems and creates merge conflicts. What is the simplest way to configure svn/git and git-svn on windows and linux so that there are now whitesp...

git CRLF and encoding

Hello all, I'm fighting against the tool and loosing. I want my project for every text file and every developer to be UTF-8 and CRLF. 1) how do I configure git for that ? 2) how do I share this git setting with all developers so that nobody can forget to configure that ? I read a bit about core.autocrlf and safecrlf, but I don't see ...

Connecting git to github on windows 7 without bash

I'm setting up git on my new Windows 7 machine and I'm hitting a roadblock when it comes to getting github to acknowledge my ssh key. I am doing things a little different from the standard script in that I would rather not use cygwin and prefer to use my powershell prompt. The following is what I did: I installed msysgit (portable). I...

Merging changes from master into all branches using Git?

I use git to maintain multiple working copies of my code. The idea is that I can check out any branch, build and run it to see how the branch's feature x fits in with the current state of the code. Git's master branch is the Trunk and the other git branches are features or things I would like to try out. Therefore, my typical usage is ...

.gitignore does not understand my folder wildcard on windows

I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders). So I have: .gitignore: *.exe !/Dependencies/**/*.exe This, unfortunately, does not work. Meanwhile, this does: *.exe !/Dependencies/folder/subfolder/*.exe So I'm won...

Performing git on a dir

Hi all, I'm trying to script a 'git pull' at $dir. It should be the equivilent of 'svn update $dir'. Does any one know any easy way to do this? ...