Open CMD (Command Prompt).
1.1. Navigate to your project directory, where you want to setup the code. ex PGDDA --> Module7 Capstone Project
cd my/directory
git clone https://github.com/Sujeet1604/capstone_project.git
Now you can start coding. Once you have done with your coding, 👀do not forget👀 to commit and push your code.
✔️ ** You should pull the code everytime when you are going to code. This will update and sync your code with the latest one.
✔️ ** Once you will done with coding, please make sure to commit and push this code. So that, your code will be synced and main repo will be updated. So, if someone else pull the code, he/she will get the updated code.
✔️ ** I have created seperate R files for everyone. Please code only in your R code. Once tested, it will be merged with mainCode.R
2. (Commit and push) When you are done with the code, follow the 👇below👇 steps to commit and push your changes.
Open CMD (Command Prompt).
cd your/path/capstone_project
git status
You will see the files where you have done the changes. There will be three types of changes:
- Add -- When you will add any new file/ folder example- PPT, word, excel etc
- Remove -- When you remove/delete any file from the directory.
- Modified -- When you will modify any file, example your code
git commit yourCode.R -m "mentioned what you changed/added/coded"
git push
3. (Pull ) Everytime when you are going to start coding, please pull the code by 👇below👇 steps so that you will get updated mainCode.R and other's updated code as well.
Open CMD (command prompt)
cd your/path/capstone_project
git pull