Skip to content

azeng4499/git-silk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Silk

A set of interactive, one-word Git aliases

How many times do you think you've typed the word git in your life? Git Silk replaces your most common workflows with one-word aliases for a faster, safer, and (silky) smoother developer experience.

Type less! Works directly in the terminal without a prefix:

  • git checkout <branch-name>`switch`
  • git branch -m <branch-name>`rename`
  • git push`push`
  • ... and many more

Git Silk Demo

Requirements

Made for Linux. Built on Clack and requires Node.js to run.

Installation

brew install azeng4499/git-silk/git-silk

Commands

checkout or switch

Branch checkout. Great for switching to branches with long names that are annoying to type.

Equivalent to:

~ git checkout <branch-name>

Checkout Demo


push

Stage, commit, and push files all with one workflow. Displays all files with changes, and allows you to select specific files to push.

Equivalent to:

~ git add <file-1> <file-2> <file-3>
~ git commit -m <commit-message>
~ git push

Push Demo


pushall

Quickly stage all changes, commit, and push in one go.

Equivalent to:

~ git add .
~ git commit -m <commit-message>
~ git push

Pushall Demo


pull

Pull changes from the remote repository.

Equivalent to:

~ git pull

Pull Demo


merge

Merge branches with conflict handling.

Equivalent to:

~ git merge <branch-name>
~ git commit

Merge Demo

In the event of a conflict:

Conflict Demo


create

Create a new branch locally and optionally push it to remote too.

Equivalent to:

~ git checkout -b <branch-name>
# optionally:
~ git push origin <branch-name>

Create Demo


delete

Delete a branch locally and optionally delete it on remote too.

Equivalent to:

~ git branch -D <branch-name>
# optionally:
~ git push origin --delete <branch-name>

Delete Demo


rename

Rename a branch locally and optionally rename it on remote too.

Equivalent to:

~ git branch -m <old-branch-name> <new-branch-name>
# optionally:
~ git push origin --delete <old-branch-name>
~ git push origin <new-branch-name>

Rename Demo

License

MIT

About

A set of interactive, one-word Git aliases

Resources

License

Stars

Watchers

Forks

Packages

No packages published