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!
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.
Note: [repo] is the URL of a repository, e.g. https://github.com/terriblememory/stupidgit.
- 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.
- Clones into the current directory.
- Makes the origin remote for this working copy.
- Updates the working copy from the origin remote.
- May require merge conflict resolution.
- Adds all new files, changes and deletions.
- Pushes these changes to the origin remote.
- Clones a repo as a subtree into the current subdirectory of a working copy.
- Makes the subtree origin remote.
- Updates the subtree from the suntree origin remote.
- May require merge conflict resolution.
- Pushes subtree changes to the subtree origin remote.
- Lists all of the subtrees in this repo.