- If you are familiar with git then go here
- Getting Started
- Resources
If you get stuck, ask for help on the AnalyticsCal Slack Channel.
The first task is to install git on your machine. For Windows users, download git from here - https://git-scm.com/downloads ans use git bash
. For Linux users, you can use your distro's package manager to install git.
Note: You can learn about Version Control Systems (VCS) here.
Ubuntu VM image can be downloaded from here
After installing git, run git and execute these commands:
git config --global user.name "[name]"
git config --global user.email "[email address]"
That should complete the software setup.
git clone [copied url here]
That should download the repo locally.
To see a list of branches:
git branch
To checkout a branch
git checkout [branch name here]
To checkout and create new branch
git checkout -b [branch name here]
You should see the branch name change on the terminal prompt.
git add -A
This adds all files to the upcoming commit. Now, to create the commit run this command:
git commit -s -m "[commit message here]"
Write any message in place of the commit message.
To push your changes, run:
git push origin [branch name]
This should upload your changes to your GitHub account.
Now, you can propose these changes to the actual project by clicking on the Pull Request button on GitHub.
The best way to do it (guide by https://codeburst.io/) :
Go to step 7 here
- Please fork repo before editing and clone it to your local machine.(fork is a copy of the repo in your account and a clone is a copy downloaded into your local machine).
- Create a separate new branch and name it
dev [team number]
and start editing. Please do not edit in themaster
branch anddev
branch of other team.(team number is used instead of team name to keep the length of branch name short.) - Adding and commiting : Sign the commits you make (using
git -s -m "[Commit message]"
). Please write concise and understandable commit message. - After commiting check the status, if everything is clean push everything to your repo and make a pull request.
- Every time you start working again Fetch the repo and start working so that your local repo will be in synchronization with the master.Follow this
You can learn more about Git and GitHub here:
- https://www.atlassian.com/git/tutorials
- https://www.youtube.com/playlist?list=PLWKjhJtqVAbkFiqHnNaxpOPhh9tSWMXIF
- https://codeburst.io/a-step-by-step-guide-to-making-your-first-github-contribution-5302260a2940
This guide is written by referring to Arya Das's guide to getting started with open source