1452
votes
10answers
386k views
How do I delete a Git branch both locally and in GitHub?
I created a bugfix branch to fix a bug on a project that I had forked on GitHub. I issued a pull request to the developer to incorporate my fix, but the developer decided to implement a different fix ...
419
votes
4answers
220k views
GIT revert to previous commit… how?
If I do "git log" and get the following output:
[root@me dev]# git log
commit a867b4af366350be2e7c21b8de9cc6504678a61b`
Author: Me
Date: Thu Nov 4 18:59:41 2010 -0400
blah blah blah...
commit ...
283
votes
3answers
74k views
How can I remove a commit on github?
I "accidentally" pushed a commit to github.
Is it possible to remove this commit?
I want to revert my github repository as it was before this commit.
259
votes
7answers
33k views
Link to GitHub issue number with commit message?
Is it somehow possible to automatically have a link to GitHub issue number in the git commit message?
170
votes
7answers
121k views
Rollback File to much earlier version
Is there a way in Git to rollback to a much earlier version of a file? I can roll back to the previous version with REVERT, but what if I want to go back to earlier versions? What's the best workflow ...
165
votes
16answers
119k views
SSL certificate rejected trying to access GitHub over HTTPS behind firewall
I'm stuck behind a firewall so have to use HTTPS to access my GitHub repository. I'm using cygwin 1.7.7 on Windows XP.
I've tried setting the remote to ...
158
votes
7answers
45k views
Import existing source code to github
how can I import source code from my computer to my github account?
153
votes
4answers
14k views
How do you attach a new pull request to an existing issue on github?
I'm not sure, but I have a vague memory of creating a github pull request with "Issue 4" or something in the title, and it automatically attached itself to Issue 4 in the project that I was submitting ...
152
votes
13answers
91k views
What's the best Web interface for Git repositories? [closed]
I've been using Git for a bit now (hosting my own) and would love to have something like GitHub that I could setup for my own repos. I've seen GitWeb, but I just don't like using it all that much. ...
149
votes
5answers
22k views
Should Gemfile.lock be included in .gitignore?
I'm sort of new to bundler and the files it generates. I have a copy of a git repo from github that is being contributed to by many people so I was surprised to find that bundler created a file that ...
142
votes
5answers
50k views
Is there any way to clone a git repository's sub-directory only?
I have my git repo which, at the root, has two sub-dirs
/finisht
/static
When this was in SVN, /finisht was checked out in one place, while /static was checked out elsewhere, like so:
svn co ...
133
votes
5answers
20k views
Search code inside a Github project
Is there a way to grep for something inside a Github project's code?
I could pull the source and grep it locally, but I was wondering if it's possible through the web interface or a 3rd-party ...
126
votes
7answers
38k views
How can I determine the url that a local git repo was originally cloned from?
I pulled a project from github a few days ago. I've since discovered that there are several forks on github, and I neglected to note which one I took originally. How can I determine which of those ...
124
votes
17answers
79k views
Push origin master error on new repository
I just started using git with github. I followed their instructions and ran into errors on the last step. I'm checking in an existing directory that isn't currently source-controlled (project about a ...
119
votes
17answers
49k views
Pushing to Git returning Error Code 403 fatal: HTTP request failed
I was able to clone a copy of this repo over HTTPS authenticated. I've made some commits and want to push back out to the GitHub server. Using Cygwin on Windows 7 x64.
...