Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Using git

Shikhar Nigam edited this page Nov 17, 2013 · 3 revisions

Installing git:

Linux: sudo apt-get install git
Windows: Download from http://git-scm.com/download/win and install

Workflow:

  1. Fork the repo: Go to https://github.com/pgmpy/pgmpy_viz. You can see a fork button on the top right hand side. Click on it. You can now see pgmpy_viz in your repositories list.

  2. Setting up proxy for git: On linux you can either set a temporary proxy using export https_proxy=https://username:password@proxy_add:port. Temporary proxies work only in the terminal window in which you set them and are automatically reset on closing the window. For setting up permanent proxy for git use git config --global http.proxy http://proxyuser:[email protected]:port.

  3. Clone the repo: (on linux use your terminal, on windows use git that you installed). Run git clone https://github.com/YOUR_GITHUB_USERNAME/pgmpy_viz. Git will copy all the files from github to your hard drive. You can see the folder pgmpy_viz in your home folder.

  4. Committing the changes: After making changes to the files use git add <filename1> <filename2> ... to stage the files that you have changed or you can use git add * and all the files with changes will be staged. After this, do git commit -m "YOUR_COMMIT_MESSAGE" and your changes will be committed locally.

  5. Pushing changes to github: For pushing your commits to github do: git push origin master, it will ask for your github username and password and then push the changes.

  6. Sending pull requests: After pushing your changes go to https://github.com/YOUR_GITHUB_USERNAME/pgmpy_viz. You should be able to see an option to send pull requests.

Guidelines for commit messages:

  1. http://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines
  2. https://help.github.com/articles/closing-issues-via-commit-messages
For more about git you can read pro git: http://git-scm.com/book. The first three chapters should be enough for learning the basics.