5
votes
2answers
4k views

How can I recover from an erronous git push -f origin master?

I just committed the wrong source to my project using -FORCE. Is it possible to revert? I understand that all previous branches have been overwritten using -f, so I may have screwed up my previous ...
6
votes
2answers
1k views

Git: how to add commits before first/initial/root commit? [duplicate]

New Question Two questions: I'm trying to put a commit before ALL commits. The bottommost commit has 660fb2a76211f36ec9a67d0454a90eab469e9fd0 as SHA. When I type git rebase -i ...
2
votes
3answers
412 views

Simple Sequence of GIT Commands

I read the documentation and googled a good bit, but there is no real simple steps to be able to commit your local changes to github. I compiled the following steps and I just want to make sure am ...
9
votes
4answers
7k views

GitHub - How to revert changes to previous state

I am using Git Hub as my remote repository. I have already pushed 5 commits to the server and want to revert back to the state before the those commits. If the commit number is 3425661dba2aadccdbab, ...
10
votes
3answers
5k views

Git pull results in extraneous “Merge branch” messages in commit log

I'm working with another developer on a project, and we're using Github as our remote repo. I'm on a Mac using git 1.7.7.3, he's on Windows using git 1.7.6. This is what's happening One of us ...
14
votes
3answers
7k views

Editing the git commit message in GitHub

Is there any way of online editing the commit message in GitHub.com, after submission? From the command line, one can do git commit --amend -m "New commit message" as correctly suggested in ...
2
votes
2answers
531 views

How to compose git log for pending changes in TeamCIty

I have a TeamCity agent configured to build my XCode projects and I use github. I would like to automatically include in my release notes the descriptions from all pending commits in TeamCity. How ...
1
vote
1answer
49 views

create a commit, save it, don;t push it than create some few more commits , push them than push the first commit

What if I want to save a commit say commit-1 but don;t want to push it and then after few commits,which I have pushed also, then I want to push that commit-1 ?
6
votes
1answer
2k views

GitHub - List commits by author [closed]

Is there any way in GitHub.com to list all commits made by a single author, in the browser (neither locally, e.g. via git log, nor via the API)? Clicking on a user name in the list of commits (Commit ...
4
votes
1answer
313 views

how does github 52 week participation work?

I'm confused about my github 52 week participation graphs. Most of the projects that I have on there only have one author (me). However the "commits by owner" on the 52 week participation are zero, ...
2
votes
2answers
4k views

How can I upload committed changes to my GitHub repository?

I used clone to create a local copy of my repository on GitHub. I modified a few files. Then I did: git commit -a And now I want to save my committed changes to the GitHub repository. How can I do ...
1
vote
3answers
1k views

Link Heroku commits to Github?

This may be a silly question, but when you commit to Git for Heroku, does it show up anywhere on Github or is there any way to have it show up that way? Or where are the commits being stored? I wasn't ...
1
vote
3answers
1k views

Why does my GitHub pull request have two commits?

I've forked a project on GIT, and started contributing. From what I've understood, that project has a pending pull request at the time I cloned the project, and later that commit of a 3rd person was ...
0
votes
1answer
738 views

Github workflow and pull requests showing unwanted commits

In our business we have the following setup (hugely simplified version), pretty standard: A master branch, which updates the live environment through a hook. A test branch, used for QA, UA, which ...