Setting up GitHub Version Control with Qt Creator*

Similar documents
Sample Spark Web-App. Overview. Prerequisites

Using GitHub to Share with SparkFun a

Version Control with Git ME 461 Fall 2018

Tips on how to set up a GitHub account:

Git Introduction CS 400. February 11, 2018

G E T T I N G S TA R T E D W I T H G I T

EGit/Gerrit Hands-on training #1: Installation and Configuration

Overview. 1. Install git and create a Github account 2. What is git? 3. How does git work? 4. What is GitHub? 5. Quick example using git and GitHub

Make sure to mark it private. Make sure to make it a Mercurial one and not a Git one.

LPF Training Handbook!

Github/Git Primer. Tyler Hague

Git Setup Help using GitKraken (CSE 154)

Lesson 7: Recipe Display Application Setup Workspace

CS 261 Recitation 1 Compiling C on UNIX

Software Development I

History...: Displays a window of Gitk, a standard commit viewer for Git.

FEEG Applied Programming 3 - Version Control and Git II

A Brief Git Primer for CS 350

699DR git/github Tutorial

Object Oriented Programming. Week 1 Part 2 Git and egit

Getting the files for the first time...2. Making Changes, Commiting them and Pull Requests:...5. Update your repository from the upstream master...

How to version control like a pro: a roadmap to your reproducible & collaborative research

(Cloud9) and to the Remote Repository (GitHub)

CSCI 350 Virtual Machine Setup Guide

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

Lecture 2: Data in Linguistics, Git/GitHub, Jupyter Notebook. LING 1340/2340: Data Science for Linguists Na-Rae Han

API RI. Application Programming Interface Reference Implementation. Policies and Procedures Discussion

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

This document is intended to help you connect to the CVS server on a Windows system.

Gitlab Setup/Usage by Yifeng Zhu modified by Vince Weaver 30 January 2019

Developing Android applications in Windows

Submitting your Work using GIT

Git. Presenter: Haotao (Eric) Lai Contact:

CSCE UVM Hands-on Session-1 Pre-Work

Lab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU

Agenda. - Final Project Info. - All things Git. - Make sure to come to lab for Python next week

How to Install and Setup VoIPOffice Communicator for Mac

Visualizing Git Workflows. A visual guide to 539 workflows

Intro to Github. Jessica Young

Optimizing your CodeReady Toolchain resource usage. Red Hat Developers Documentation Team :07:31 UTC

1. Which of these Git client commands creates a copy of the repository and a working directory in the client s workspace. (Choose one.

Git, the magical version control

CSE 332: Data Structures and Parallelism Winter 2019 Setting Up Your CSE 332 Environment

Version control system (VCS)

Distributed Version Control

Version control with git and Rstudio. Remko Duursma

The Old World. Have you ever had to collaborate on a project by

L Modeling and Simulating Social Systems with MATLAB

AMath 483/583 Lecture 2

AMath 483/583 Lecture 2. Notes: Notes: Homework #1. Class Virtual Machine. Notes: Outline:

Installing VS Code. Instructions for the Window OS.


Version Control. Collaborating with git. Tim Frasier

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

Assumptions. GIT Commands. OS Commands

Azure Developer Immersion Getting Started

Git tutorial. Katie Osterried C2SM. October 22, 2015

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

Revision control. INF5750/ Lecture 2 (Part I)

Git Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP

A short tutorial on Git. Servesh Muralidharan 4 March 2014

Project 3 Students Choice of Native Apps. each milestone s deadline is noon see cs164.net/expectations for each milestone s expectations

USER GUIDE MADCAP LINGO Source Control: Git

KLAS v7 Workstation Installation Self-Hosted Progress Version 10.2B / Windows 7

MOOSE-Based Application Development on GitLab

USER GUIDE. MADCAP FLARE 2017 r3. Source Control: Git

10.1 Getting Started with Container and Cloud-based Development

manifold Documentation

Introduction to Git. Database Systems DataLab, CS, NTHU Spring, 2018

Getting started with Raspberry Pi (and WebIoPi framework)

Downloading, Installing, and Configuring Audacity Under OS X

Tutorial 2 GitHub Tutorial

C++ DATA TYPES BASIC CONTROL FLOW

CS 390 Software Engineering Lecture 5 More Git

CSE 331 Software Design & Implementation

Zephyr Kernel Installation & Setup Manual

QGIS Script Assistant Plugin Documentation

Remote Access to Unix Machines

HW2d Project Addenda

Conda Documentation. Release latest

213/513/613 Linux/Git Bootcamp. Cyrus, Eugene, Minji, Niko

Using Eclipse Che IDE to develop your codebase. Red Hat Developers Documentation Team :15:48 UTC

:59:32 PM PST

Eugene, Niko, Matt, and Oliver

Hands-On Lab. Getting Started with Git using Team Foundation Server Lab version: Last updated: 12/30/2013

git-flow Documentation

Git version control with Eclipse (EGit) Tutorial

Using git for Homework

SmartCVS Tutorial. Starting the putty Client and Setting Your CVS Password

A Brief Introduction to Git. Sylverie Herbert (based on slides by Hautahi Kingi)

Topics covered. Introduction to Git Git workflows Git key concepts Hands on session Branching models. Git 2

Lab Exercise Test First using JUnit

How to: Use Outlook Web App (OWA)

Kivy Designer Documentation

Over the next several hundred pages, you can find out about the applications

Creating a Yubikey MFA Service in AWS

Human-Computer Interaction Design

Continuous Integration (CI) with Jenkins

Transfer Manager.NET Installation Guide

Human-Computer Interaction Design

Transcription:

Setting up GitHub Version Control with Qt Creator* *This tutorial is assuming you already have an account on GitHub. If you don t, go to www.github.com and set up an account using your buckeyemail account. It will also require you to install Git for your OS. You can check to see if you already have it installed by entering git version into your command prompt, as shown below. You can find the install for your OS through a simple search if you need it. Setting up Qt Creator for Git You ll first need to point Qt to the location of the Git commands. This should be located at C:\Program Files\Git\bin, where you ll find the application entitled git along with 2 other files as shown on the next page.

Once you ve located the file, copy the file location. Open Qt and navigate to Options under the Tools menus. As shown below, navigate to Version Control and select Git. Paste the file location from earlier into the text box labeled Prepend to PATH:. Once this is done, you ll be able to use Git in Qt Creator.

Starting a New Project with Git in Qt Creator Now that Qt Creator is configured for Git, it s time to start a new project. You ll first want to create your remote repository on GitHub. Once you ve logged in, click New repository. Make sure to initialize it with a README and to add a Qt.gitignore, as shown below BEFORE creating the repository. To add the.gitignore, click Add.gitignore and type in Qt. Once you ve created your repository, you ll need to clone it to your computer. Open the command line. For Mac users, you can open the normal terminal. For Windows users, you ll

need to open Git CMD. Make sure your working directory is where you intend to put the project. To clone the repository, type git clone repository_url as shown on the next page. If you navigate to the working directory, you should now see a folder matching the repository name. The final step is to create the project in Qt Creator. Create the project as you ve done previously, selecting FEH Proteus SD. Make sure you create it in the same directory that you cloned the repository to. Name the project the exact same as the repository. Don t worry about the warning of the project existing. Under Summary, make sure the option Add to version control: is set to Git. You ll get a warning about the Makefile not being added to the version control; open the project anyways. Using Version Control in Qt Creator Your project is now set up and ready to go. You can even build it to be sure. As with other files, it is important to constantly save them. With version control, you ll be committing your changes locally and pushing those changes to the remote repository. There will be a brief overview of this here. You can find more thorough best practices elsewhere online.

To commit your changes, or add files to the repository, go to Tools >> Git >> Local Repository >> Commit. You ll see a list of files with changes or those yet to be added to the remote repository, as well as a description text box. Be sure to have descriptive comments about the changes being made to help you if you need to revert to older code. Commit Information is optional but useful if multiple people are working on your code. Once you ve selected your files to commit and added a description, click Commit. If you ve done it correctly, you ll see Committed x file(s). in the bottom of your screen. To push your changes, go to Tool >> Git >> Remote Repository >> Push. If you made your repository Private, you ll get a prompt for your username and password. You ll see the push command at the bottom of the screen. You can confirm the push by reloading the repository in a browser. If it didn t push and you get a timeout error after a minute, you pointed Qt to the wrong place for the Git commands. If multiple people are working on your code or you re working on multiple computers, it is a good idea to pull the current repository down. To do so, go to Tools >> Git >> Remote Repository >> Pull. If you re up-to-date, you ll be notified. Otherwise, your workspace will be updated with the changes. If a new file didn t appear to be added, right-click on the project and select Add Existing Files.