I have a small patch saved away in my git stash. I’ve applied it to my working copy using git stash apply. Now, I’d like to back out those changes by reverse applying the patch (kind of like what git revert would do but against the stash). Does anyone know how to do this? Clarification: […]
We have a VPS on linode, and code hosted on gitHub. How do we setup so when we push to gitHub, it also pushes automatically to our linode server. We are using PHP on the linode server. Thanks.
We have a “central” repo that we use to deploy to our development server. I know git log will show me commits and the date/time they were committed, but I’d like to see when commits were pushed to/received by the repo. Any way to do this?
I’m a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ I am also using unfuddle.com to store my code. I make changes on my Mac laptop on the train to/from work and then push them to unfuddle when I have a network connection using the […]
I want to do this command in one line: git pull && [my passphrase] How to do it?
I have a problems with a git repository and windows. The problem is that the git repository has a linux symbolic link in it and with developers running windows, that obviously does not work. Now since that symbolic link should never change, I want to find a way to delete that on developers and add […]
I have a Git repository with n commits. I have a file that I need, and that used to be in the repository, and that I suddenly look for and think “Oh! Where’d that file go?” Is there a (series of) Git command(s) that will tell me that “file really_needed.txt was deleted at commit n-13”? […]
I’ve run into a problem with git. Basically I set to false core.ignorecase because I wanted to change the case of the names of some folders (since I’m under OSX with a case-insensitive filesystem, the changes weren’t shown otherwise). When I pulled my data, I’ve noticed that now every renamed folder appears twice on the […]
I have two sub-directories each with a repo, thus : PPP/ |–ABC/ | |–.git/ | |–AAA/ | | BBB/ | | CCC/ | |–DEF/ | |–.git/ | |–DDD/ | |–EEE/ And would like to combine them into one repo, so, I would assume the directory structure would be like this: PPP/ |–.git/ |–ABC/ | |–AAA/ […]
I have a remote server on which I have created a bare git repository. I would like to create a hook so that a given script is run on the latest code received on any given branch. I know the post-receive hook can be used for it. However I want to do the following: Get […]