A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/calancha/Gited below:

calancha/Gited: Operate on Git branches like dired

Gited: Operate on Git branches like dired

This library lists the branches in a Git repository. Then you can operate on them with a dired-like interface.

The command gited-list-branches prompts for the kind of branch (local branches, remote branches or tags) and lists them. This command is used quite often, thus it might be convenient to give it a key binding. For instance, if gited.el is in your load-path, then you can bind it to C-x C-g in Dired buffers by adding the following lines into your .emacs file:

(require 'gited)
(define-key dired-mode-map "\C-x\C-g" 'gited-list-branches)

If you are familiar with Dired, then you already know how to use Gited; that's because most of the Gited commands with a Dired equivalent share same keybindings. For instance gited-rename-branch is bound to 'R' as dired-do-rename. Similarly, gited-mark is bound to 'm' as dired-mark.

How to push to the remote repo. your local changes

Suppose you want to update a file foo (*).

From the Gited buffer:

c master RET ;  Checkout master branch (**).
*< ; Synchronize with remote repository.

Now, update foo with your changes and save it.

From the Gited buffer:

C-c c "Updated foo" RET ; Commit them.
*> ; Public your changes into the remote repository.

(*) We have restricted to 1 file for simplicity. The recipe works for N>=1 files.

(**) For changes that require several commits you might prefer to work in a separated branch 'feature'. In that case you'd merge the master branch with 'feature' before *>).

List the tags from the Emacs repository:

List the remote branches from the Emacs repository with author and commit date:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4