Skip to content

A set of commands that execute common git tasks

License

Notifications You must be signed in to change notification settings

software-for-life/git-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

git-helper

A set of commands that execute common git tasks. (diff-highlight, git-sync-fork)


diff-highlight

Description:

This perl script should be used in your git configuration.

Example:

Extract of ~/.gitconfig

[diff]
  compactionHeuristic = true
[interactive]
  diffFilter = diff-highlight.pl
[pager]
  diff = diff-highlight.pl | less
  log = diff-highlight.pl | less
  show = diff-highlight.pl | less

git-sync-fork

Synopsis:
git-sync-fork [BRANCH]...
Example:
user@pc:git-project/$ git-sync-fork master gh-pages
Description:

It updates the branches in fork with the branches in the upstream repository.

Assumptions:
  • The current directory is the git project.
  • The name of the remote for the upstream repository is 'origin'.
  • The name of the remote for the forked repository is 'fork'.

OBS

This software is packaged and distributed using OBS