help git also see: ssc

Title

git -- Manage git repositories through a series of basic commands. It installs, updates, lists and removes git repositories containing Stata user-written programs. An alternative to sharing through ssc or net

Author

Rodrigo Martell rodrigo.martell@gmail.com. Github - github.com/coderigo/stata-git.

Syntax

git command

command

install repository Install program in repository (url or filepath).

uninstall programName Uninstall programName and its repository previously installed with git install.

update programName Update programName's repository previously installed with git install.

list List all repositories managed by git.

Description

git Manages git repositories through a series of basic commands. It installs, updates, lists and removes git repositories containing Stata user-written programs. An alternative to sharing through ssc or net. Git repositories are saved in the same location as the ado and personal directories

Creating a git repository containing a Stata module

A few handy tips to make it work with git:

1. Use the snake-case format for your repository name and prefix it with "stata". For example, if your program helloWorld, your repository should be called stata-hello-world.

2. Use the camelCase for your program name and any installable other auxiliary files including the .sthlp file.

3. Place all the files you want to be copied over in the root of your repository.

4. It works nicely (and it's easier for community collaboration) if you host your repository on a public repo like github

.

Examples

. git install https://github.com/coderigo/stata-switch

. git update switch

. git list

. git uninstall switch