pckrishnadas88 / indexed-git

Add files to git using it's index ie not with it's filename.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indexed-git - Add/Remove files to git using it's file index ie not with it's filename.

ut stands for untracked files.

nt stands for notstaged tracked files.

st stands for staged files.

After a command has been executed it shows the updated status.

  1. To Simply view the status execute the command without any args.
  $ ./igit.sh 
  Untracked files
  ut0 - igit.sh
  ut1 - git-status.txt
  ut2 - test
  1. To add an untracked file(ut) run like this where 0 is the index from the previous command.
  $./igit.sh add ut 0
  Staged files
  st0 - igit.sh
  st1 - git-status.txt
  Untracked files
  ut0 - test
  1. To add multiple files using comma seperated method
   $./igit.sh add ut 1,2,3  #Here 1, 2, 3 are the index of the files.
  1. To add multiple files using a range like 1..10 adds 10 files.
  $./igit.sh add ut 1..10
  1. To view the help text simply pass the help as the arguement
$./igit.sh help

About

Add files to git using it's index ie not with it's filename.

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%