- Install Git on local machine (If you don't have
Git
installed)- Download Git
- First time setup :
git config --global user.name "Your Name"
git config --global user.email "email@email.com"
- Clone the repository to local machine
git clone https://github.com/Muhammad-Ashraf9/PD.git
- Pull the latest changes every time before viewing the files
git pull
-
Best way to view the files is to use obsidian
-
Open the file you want to view in obsidian
- you can search in all files
- use
ctrl+p
to search for commands
- Install
Git
plugin From Community plugins
- search for
Git
=> installGit
plugin -> enable plugin
- set
Git
pluginoptions
- auto pull X ( up to you ) minutes
-
Fork the repository
- Navigate to the repository on GitHub
- Click on the
Fork
button in the top-right corner to create a copy in your GitHub account
-
Clone your forked repository
- Copy the URL of your forked repository
- Open your terminal and navigate to the desired directory
- Run the following command:
git clone <url-of-your-forked-repository>
-
Create a new branch
git checkout -b <branch-name>
-
Make changes to the files
- use similar Callouts Formatting
-
Add the changes to staging area
git add .
-
Commit the changes
git commit -m "commit message"
-
Push the changes to remote repository
git push origin <branch-name>
-
Create a pull request from
Github
website- Navigate to the original repository on GitHub
- You should see a prompt to create a pull request from your forked repository
- Click on the "Create Pull Request" button and follow the instructions to create a PR
- Your PR will be reviewed
- Once approved, your PR will be merged into the main branch