Fork this repository by clicking on the fork button on the top of this page. This will create a copy of this repository in your account.
Now clone the forked repository to your machine:
- Using HTTPS
git clone "https://GitHub.com/<your-username>/intro.py.git"
- Using SSH
git clone "[email protected]:<your-username>/intro.py.git"
Note: Replace with your GitHub username.
Change the current working directory to the cloned repo. For example:
cd intro.py
Now create a new branch with the below naming convention:
git switch -c add-your-branch-name
For example:
git switch -c django-fileupload-feature
- Add extra features in Django Application.
Now if you go to the project directory and enter the command git status
, you can see the changes.
Add those changes with the git add
command:
git add -A
Now commit those changes using the git commit
command:
git commit -m "Documment Your Commit"
For example:
git commit -m "File Upload feature completed"
Push your changes to GitHub using the git push
command:
git push -u origin <your-branch-name>
For example:
git push -u origin django-fileupload-feature
If you enabled two-factor authentication in your GitHub account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your GitHub account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.
Creating a personal access token
If you go to your repository page on GitHub you will see a compare & pull request
button. Click that button.
And submit the pull request.
Soon the reviewer will merge the branch into main
.