Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

C-Compton/sensor_mobile_computing

Repository files navigation

sensor_mobile_computing

Sensor and Mobile computing project

Using Git

  1. Create your development branch.

    • Either locally in your terminal
      git checkout -B branchName
    • Or on the GitHub repository page
      1. In the Code tab, press the Branch: currentBranch drop down button.
      2. Enter a branch name in the text field.
      3. Click "Create branch: branchName from 'currentBranch'"
      4. On your dev machine, do git fetch followed by git checkout branchName
  2. Develop and test

  3. Stage your changes, commit them, and push to the remote repository.

  • Stage with
    • A single file, tracked or un-tracked: git add fileName
    • All modified, tracked files: git add .
  • Commit:
    • git commit -m "Some commit message"
  • Push:
    • git push
    • If you created locally, you will need ensure your branch is created upstream. git push -u origin branchName Later pushes will work with just git push
  1. Create a Pull Request
  • It's generally good practice to merge into the branch (target branch) from which you created your dev branch. Additionally, to ensure your dev branch is up to date, you should first merge the target branch into your dev branch.
    1. Checkout the target branch.
    2. git pull to update
    3. Checkout your dev branch.
    4. Merge target branch into your dev branch. git merge targetBranch --no-ff --no-commit
      • --no-ff and --no-commit ensures that the merge is not fast-forwarded nor automatically committed.
      • Resolve conflicts, if any. Stage and commit changes. git commit We can omit a commit message and use the default merge message. Simply writequit the editor that opens.
    5. Push : git push
    6. On GitHub, navigate to your branch and click the button to create a pull request. Once approved, repeat steps i through v if the target branch has had commits made to it while your pull request was being reviewed.

About

Sensor and Mobile computing project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages