Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseGit: How can I see a list of commits that are about to be pushed

I have merged in some commits from different branches into my "develop" branch and I'm now ready to push them to the remote branch.

In TortoiseGit, is it possible to view a list of items that are about to be pushed?

"Check for Modifications" is not showing me anything, as the changes are coming from branches.

"Show Log" is also showing me a chronological list of all changes. I rather just see a simple list of items that are queued to be pushed.

I hope I'm making sense.

like image 397
farjam Avatar asked Aug 29 '12 15:08

farjam


People also ask

How can I see which commits are not pushed?

We can view the unpushed git commits using the git command. It will display all the commits that are made locally but not pushed to the remote git repository.

How can I see all branch commits?

On GitHub.com, you can access your project history by selecting the commit button from the code tab on your project. Locally, you can use git log . The git log command enables you to display a list of all of the commits on your current branch. By default, the git log command presents a lot of information all at once.

What is push in TortoiseGit?

It checks if the server branch points to the same commit as the remote-tracking branch (known changes). If yes, a force push will be performed. Otherwise it will be rejected.

What is the difference between git and TortoiseGit?

TortoiseGit is simply a native GUI git client application. GitLab is a full-brown repository management and development lifecycle framework, which provides some functionality similar to GitHub, such as pull-requests, issue tracking, user authentication, etc.


2 Answers

Use "Sync Dialog" Right click the repository folder, choose "Sync"

In "Out commits" tab, you will see a list of commits to be pushed to the remote.

Switch to "Out ChangeList" tab, you will see a list of changed files relative to the remote version.

If "Out commits" is empty or "Out ChangeList" tab does not appear, specify "remote branch" explicitly in the combo box. Then "Out commits" list will load and "Out ChangeList" tab will appear. This may happen if current branch does not have a "remote-tracking branch".

"Pull Dialog" has no such info.

like image 60
linquize Avatar answered Oct 05 '22 20:10

linquize


I don't know if you have a way to specify this in TortoiseGit, but I think a command similar to this is what you want:

$ git log origin/master..master 
like image 40
Paul Irofti Avatar answered Oct 05 '22 20:10

Paul Irofti