cd to the location you want to clone your repository.
Clone the forked repository (newly created repository on your GitHub Profile) using:
git clone <url of forked repo>
cd to that repository and check git status to see if everything is fine.
Add a Git remote (say named upstream) for the original repository using the command:
git remote add upstream https://github.com/Lean-IN-IGDTUW/ML-Circle-20-21.git
Check if everything worked fine with git remote -v command and make sure that origin should point to repo on your profile and upstream should point to the original repo (in the Lean In organization like shown below):
Update any changes (if any) using:
git checkout maingit pull upstream maingit push origin main
Enter username and password, if prompt.
Create a branch to work on and checkout/switch to it.
git checkout -b <branch name>
On Anaconda Prompt
Open the cloned repository in Jupyter Notebook
Go to Python-Session/Submissions and copy the Assignment 1.ipynb in the same folder and name it as your GitHub-name.
Start solving the assignment and save when done.
On Git Bash
Check git status to know if only the required files are changed.
Do the following:
git add .
git commit -m "<commit message>"
git push origin <branch name>
Open the this repository. It must be showing that a new branch is pushed.
Click Pull request or Compare
Create a pull request.
On Git Bash
Once the Pull Request gets merged update your origin and local main with the changes in upstream using:
git checkout maingit pull upstream maingit push origin main
Congratulations for completing an Open Source Workflow!
The following steps will help you submit the latest Python Assignment on GitHub:
On Git Bash
cd
to the location you want to clone your repository.Clone the forked repository (newly created repository on your GitHub Profile) using:
git clone <url of forked repo>
cd
to that repository and checkgit status
to see if everything is fine.Add a Git remote (say named
upstream
) for the original repository using the command:git remote add upstream https://github.com/Lean-IN-IGDTUW/ML-Circle-20-21.git
Check if everything worked fine withgit remote -v
command and make sure that origin should point to repo on your profile and upstream should point to the original repo (in the Lean In organization like shown below):Update any changes (if any) using:
git checkout main
git pull upstream main
git push origin main
Enter username and password, if prompt.Create a branch to work on and checkout/switch to it.
git checkout -b <branch name>
On Anaconda Prompt
Jupyter Notebook
Assignment 1.ipynb
in the same folder and name it as your GitHub-name.On Git Bash
git status
to know if only the required files are changed.git add .
git commit -m "<commit message>"
git push origin <branch name>
Pull request or Compare
On Git Bash Once the Pull Request gets merged update your
origin
and local main with the changes inupstream
using:git checkout main
git pull upstream main
git push origin main
Congratulations for completing an Open Source Workflow!
Note: You can read more about these steps here