Skip to content

Setting up the project.

manujai edited this page Feb 10, 2021 · 1 revision

Steps to set up the project

Step 1: Fork and Clone Project

  1. Create a folder named dev in your home directory. All repos can be cloned in to this folder. mkdir ~/dev cd ~/dev

  2. Visit https://github.com/AdaptiveCards-Desktop/AdaptiveCards and Fork the project (Org id preferred)

  3. Got to the Adaptive Card forked repo and click Click or Download

  4. Copy the link and run in terminal git clone https://github.com/<userid>/AdaptiveCards where userid is your github username

  5. Jump to the project directory cd AdaptiveCards

Step 2: Set up Git remote

  1. List your git remote git remote -v and you should see something like this
    Git remote with origin

  2. Add upstream remote git remote add upstream https://github.com/AdaptiveCards-Desktop/AdaptiveCards and you should see something similar
    Git remote with origin and upstream

Step 3: Rebasing and checking out a feature branch

  1. Rebase from main branch to get the latest commits git pull --rebase upstream main
  2. Create a new feature branch git checkout -b my_feature

Step 4: Raising Pull Requests

  1. After making the commits, push to your origin git push origin my_feature
  2. Visit your origin repo https://github.com/userid/AdaptiveCards where userid is your github username and raise PR for main branch under AdaptiveCards-Desktop upstream.

Summary:

  1. https://github.com/AdaptiveCards-Desktop/AdaptiveCards is your upstream repo
  2. https://github.com/userid/AdaptiveCards is your origin repo
  3. Commits are pushed to origin feature branch
  4. Use main branch and not master