Skip to content

I am bad at Git. Also bad at bash. So I made some bad bash scripts to make Git easier.

Notifications You must be signed in to change notification settings

terriblememory/stupidgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StupidGit

Note that these scripts haven't exactly been tested rigorously.

Since I'm bad at Git and bad at Bash you should set your expectations accordingly!

Installation

These are bash scripts so just clone this repository into a subdirectory and add that directory to your bash path in your .bashrc.

If, like me, you don't know bash, this is the command to add to .bashrc:

export PATH="/c/code/stupidgit:$PATH"

Obviously substitute the actual path for your case.

Basics

Note: [repo] is the URL of a repository, e.g. https://github.com/terriblememory/stupidgit.

GINIT [repo]

  • Creates a local repo in the current directory.
  • Adds all of the files in the directory tree in an initial commit to the local repo.
  • Pushes the local repo to
  • Makes the origin remote for this working copy.

GCLONE [repo]

  • Clones into the current directory.
  • Makes the origin remote for this working copy.

GPULL

  • Updates the working copy from the origin remote.
  • May require merge conflict resolution.

GPUSH

  • Adds all new files, changes and deletions.
  • Pushes these changes to the origin remote.

Subtrees!

GSCLONE [subdir] [repo]

  • Clones a repo as a subtree into the current subdirectory of a working copy.
  • Makes the subtree origin remote.

GSPULL

  • Updates the subtree from the suntree origin remote.
  • May require merge conflict resolution.

GSPUSH

  • Pushes subtree changes to the subtree origin remote.

GSLIST

  • Lists all of the subtrees in this repo.

About

I am bad at Git. Also bad at bash. So I made some bad bash scripts to make Git easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages