Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » mapping git commands to egit operations
mapping git commands to egit operations [message #795466] Fri, 10 February 2012 13:54 Go to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
I've been asked a number of times by co-workers how this or that Git operation can be done in egit. I don't know if there's a definitive guide anywhere but I couldn't find one. So I'm starting to put one together. Here's my first cut, please respond with fixes, additions and improvements.

add: "Add to Index" toolbar/menubar item to add all changes in selected files.
"Team -> Add to Index" to add all changes in selected files.
Drag-and-drop in "Git Staging" view
Drag-and-drop in "Synchronization" view.
"Compare With.." to stage or unstage line-by-line

annotate: "Team -> Show in Annotations"

branch: "Checkout"/"Switch To" toolbar/menubar item to list, create, rename and delete local branches and remote-references.
toolbar of Commit views to create a branch from that commit
right-click menu of commits listed in history

checkout: "Checkout"/"Switch To" toolbar/menubar item to checkout a local branch. "Replace With..." to checkout a single file.
right-click menu of commits listed in history or reflog
right-click menu of branches in "Git Repositories" view
toolbar of Commit views

cherry-pick: right-click menu of commits listed in history.
toolbar of Commit views

clone: toolbar of Git Repositories" view

commit: "Commit" toolbar/menubar item
"Team -> Commit"
"Commit" toolbar in "Git Staging" view

config: "Properties" view
Preferences: "Team -> Git"
"Team -> Remote -> Configure..."

diff: "Team -> Advanced -> Synchronize" to compare branches
"Team -> Synchronize Workspace" to compare working tree to HEAD
"Compare With" for specific files
double-click items in either "Git Staging" changes windows

fetch: "Fetch changes from upstream" toolbar/menubar
"Team -> Fetch changes from upstream"

gui: "Git Staging" view

init: toolbar of Git Repositories" vi

log: "Team -> Show in history"

merge: "Team -> Merge"

mv: Implicit when file is renamed

pull: "Pull" toolbar/menubar item
"Team -> Pull"

push: "Push to Upstream" toolbar/menubar item default push
"Team -> Push to Upstream" ditto
"Team -> Push..." for explicit push

rebase: "Rebase" toolbar/menubar item
"Team -> Rebase"

reflog: "Git Reflog" view

remote: "Team -> Remote"
"Branches -> Remote Tracking" in "Git Repositories" view

reset: "Reset" toolbar/menubar item to reset a branch
"Team -> Reset" ditto

revert: right-click menu of commits listed in history.

rm: implicit when file is deleted

status: implicit in decorations

tag: "Team -> Advanced -> Tag...", annotated tags only
toolbar of Commit views, ditto

Re: mapping git commands to egit operations [message #800532 is a reply to message #795466] Fri, 17 February 2012 07:30 Go to previous message
Ondrej Medek is currently offline Ondrej MedekFriend
Messages: 23
Registered: July 2009
Junior Member
Thanks very much, my coworkers asks the same. So i have created a wiki page
Previous Topic:Pull authentication fail because of rsa authentication
Next Topic:what does "rejected" mean when pushing to a remote repository?
Goto Forum:

Current Time: Thu Apr 26 04:16:01 GMT 2018

Powered by FUDForum. Page generated in 0.01583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software