If you're new to git, want to practice your skills and git good, you've come to the right place! You can do the following listed task and you should be good to go. Incase you're stuck you can refer to our guide on Git and GitHub or ask for help on our Discord server.
- Install Git on your system
- Setup a GitHub Account
- Configure yout Git Client with the username and email as your GitHub Account
🎉 You just installed and configured git to keep your basic information with your GitHub account.
- Make a new directory/folder and initialize it as a git repository
- Make a empty repository on GitHub
- Add that repository as a remote in local repository naming it "origin"
- Add a python script in that repository doing addition of two variables
- Stage the file to be committed
- Commit the staged file
- Push the changes to the remote
🎉 You just created your first repository on GitHub and synced your local code to it. Suppose you want to make new changes, just repeat the steps from 5 to 7.
- Fork the repository this repository
- Clone the repository you just got under your GitHub id on your local system
- Add the original repository as a new remote naming it "upstream"
- Make a new folder under
/pulls
with your roll number - Add a python code to do binary sort for an array from user input
- Stage the file to be committed
- Commit the staged file
- Push the changes to the remote
- Visit the original repository on GitHub using browser and submit a Pull Request
🎉 You just submitted your first pull request! Consider doing the same when you want to fix some bugs or add a feature in someone's code. Once your Pull Request is merged you can pull the lastest updates from the remote "upstream" to update your local repository and then push the changes to remote "origin" to keep your copy of code up-to-date too!