Linked Questions

386 votes
2 answers
405k views

Possible Duplicate: Viewing Unpushed Git Commits How do I list all commits which have not been pushed to the origin yet? Alternatively, how to determine if a commit with particular hash have been ...
takeshin's user avatar
  • 51k
22 votes
5 answers
14k views

I was checking the X commits using the following command: git log --author=<my-name> -<X> But the problem is that I accidentally pulled code from another repository and added the commits ...
Mohammed H's user avatar
  • 7,068
28 votes
2 answers
67k views

If I have a local branch test and the remote branch is test. So if I did a push it would be push origin test:test How can I see my local unpushed commits that I did on that branch? git log?
user565660's user avatar
  • 1,191
-1 votes
1 answer
2k views

I know how to see commit messages in git by git log command, but it will list out all committed messages. What I want is those committed messages which have not been pushed that means only committed ...
Sumit Sahu's user avatar
1 vote
2 answers
346 views

I nice command could be: git commit -ls I wanna see all commits that I did before push it to Remote. I've tried git diff with its commands such --cached but it's not what I need now.
felipekm's user avatar
  • 2,930
1 vote
1 answer
184 views

I entered my office this morning, went to my local git repo and typed git status # On branch master # Your branch is ahead of 'origin/master' by 2 commits. # nothing to commit (working directory ...
Kian's user avatar
  • 3,229
1 vote
0 answers
97 views

I need to check whether a git push command would actually push something in a bash script. I cannot work with exit codes because it is zero for both a successful push and the "no push necessary&...
actual_panda's user avatar
  • 1,290
4498 votes
42 answers
5.7m views

How do I delete a commit from my branch history? Should I use git reset --hard HEAD?
hap497's user avatar
  • 165k
2774 votes
40 answers
3.6m views

pip is a replacement for easy_install. But should I install pip using easy_install on Windows? Is there a better way?
415 votes
16 answers
466k views

In GitHub, is there a way to see all recent commits on all branches. It would be best in reverse chronological order. Maybe I'm snoopy, but I'd like to be able to see what my developers have been up ...
Theodore Norvell's user avatar
401 votes
13 answers
416k views

How can I test if a command outputs an empty string?
barp's user avatar
  • 7,009
303 votes
11 answers
308k views

What is the best way to get a log of commits on a branch since the time it was branched from the current branch? My solution so far is: git log $(git merge-base HEAD branch)..branch The documentation ...
Greg Hewgill's user avatar
318 votes
6 answers
212k views

I have created a branch for testing in my local repo (test-branch) which I pushed to Github. If I go to my Github account and select this test-branch it shows the info: This branch is 1 commit ahead ...
Gabriel's user avatar
  • 43k
73 votes
3 answers
39k views

On a github project you can go to a /branches page and se pretty graphs like this one that for each branch show how far behind and how far ahead each branch is with respect to master. Is there a ...
kortina's user avatar
  • 6,151
48 votes
10 answers
15k views

I would like to extract the information that is printed after a git status, which looks like: # On branch master # Your branch is ahead of 'origin/master' by 2 commits. Of course I can parse the ...
Olivier Verdier's user avatar

15 30 50 per page